On Saturday 22 February 2003 21:04, David Brownell wrote: > Duncan Sands wrote: > > I get an oops on shutdown with 2.4.20 (speedtouch driver). Here is what > > happens: > > > > probe method called: I take a reference to the usb device with > > usb_inc_dev_use > > > > (machine shutting down - shutdown of usb subsystem) > > > > disconnect called > > > > (still have the reference) > > If you still hold it after your disconnect() returned, the > bug is in your driver ... > > > ...time passes... > > > > final driver shutdown: I drop the reference using usb_dec_dev_use, which > > oopses.
Hi Dave, why is it a bug? I hold a reference to the device, so it should be valid to call routines using it. Sure, those routines can return failure - but they should not oops. I am talking philisophy, not reality, of course. Thanks, Duncan. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel