Re: 2.6.4: Oops on rmmod uhci-hcd when device is still accessed
From: Greg KH
Date: Thu Mar 18 2004 - 20:15:34 EST
On Thu, Mar 18, 2004 at 12:22:03AM +0100, Jakub Bogusz wrote:
> It's in drivers/usb/core/devio.c:388:
>
> | down(&dev->serialize);
> | if (test_and_clear_bit(intf, &ps->ifclaimed)) {
> | iface = dev->actconfig->interface[intf];
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> | usb_driver_release_interface(&usbdevfs_driver, iface);
> | err = 0;
> | }
> | up(&dev->serialize);
>
> and looks like dev->actconfig is NULL
Yeah, there's a lot of nasty race conditions with usbfs that have been
around for ages. I think someone on the linux-usb-devel mailing list
has been working on fixing them all up and has a patch set you might be
able to test.
Hope this helps,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/