Patch from Daniel Ritz
rmmod yenta produces the following oops:
Unable to handle kernel paging request at virtual address
d084781e
EIP is at yenta_config_init+0x18f/0x1e0 [yenta]
Process pccardd (pid: 2618, threadinfo=
c3236000 task=
c988ae60)
{
struct yenta_socket *sock = pci_get_drvdata(dev);
+ /* we don't want a dying socket registered */
+ pcmcia_unregister_socket(&sock->socket);
+
/* Disable all events so we don't die in an IRQ storm */
cb_writel(sock, CB_SOCKET_MASK, 0x0);
exca_writeb(sock, I365_CSCINT, 0);
iounmap(sock->base);
yenta_free_resources(sock);
- pcmcia_unregister_socket(&sock->socket);
pci_set_drvdata(dev, NULL);
}