Re: [linux-usb-devel] [PATCH] usb hc modules unsafe to unload

2004-02-03 Thread David Brownell
Stephen Hemminger wrote: The USB host controller interface does not have reference counts so ... Greg already rejected this patch, but his message forgot to highlight a false premise: there are usb_bus_{put,get}() routines, which use the refcount in the class_device! is possible to remove a host

[linux-usb-devel] [PATCH] usb hc modules unsafe to unload

2004-02-03 Thread Stephen Hemminger
The USB host controller interface does not have reference counts so it is possible to remove a host controller module on the fly, leaving all sorts of dangling callback hooks and potentially outstanding URB's. Also the sysfs bus and device objects are not ref counted so any open file handles are a