Re: [2.5.70] oops when rmmod yenta_socket

From: John M Flinchbaugh (glynis@butterfly.hjsoft.com)
Date: Tue May 27 2003 - 10:27:01 EST


On Tue, May 27, 2003 at 02:08:05PM +0100, Russell King wrote:
> On Tue, May 27, 2003 at 08:49:52AM -0400, John M Flinchbaugh wrote:
> > i shutdown pcmcia and tried to rmmod yenta_socket, and i got the oops
> > below at the end of this dmesg. so far, 2.5.70 has looked alot like
> > 2.5.69-bk11 that i'd been running before.
> Try this patch, thanks to Pavel Roskin for this.
> --- linux.orig/drivers/pcmcia/pci_socket.c
> +++ linux/drivers/pcmcia/pci_socket.c
> @@ -196,9 +196,9 @@ static void __devexit cardbus_remove (st
> pci_socket_t *socket = pci_get_drvdata(dev);
>
> /* note: we are already unregistered from the cs core */
> + class_device_unregister(&socket->cls_d.class_dev);
> if (socket->op && socket->op->close)
> socket->op->close(socket);
> - class_device_unregister(&socket->cls_d.class_dev);
> pci_set_drvdata(dev, NULL);
> }

it worked nicely. thank you.
--
____________________}John Flinchbaugh{______________________
| glynis@xxxxxxxxxx http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~

Attachment: pgp00001.pgp
Description: PGP signature