On Sat, 8 Feb 2003, Duncan Sands wrote: > Conclusion A: you must be sure > to have unlinked all urbs before leaving the disconnect routine.
More accurately, you must be sure that all urbs have finished (their completion handlers have been called) before leaving disconnect(). > Conclusion B: you must loop around retrying usb_unlink_urb until it > succeeds (if ever). Is that right? If usb_unlink_urb() actually fails, I truly doubt that it will ever succeed. So retrying is not likely to help at all. On the other hand, maybe it's not so bad to just sit around and wait in disconnect() for the completion handler to be called. You would end up blocking the khubd thread and the unload process, but that's better than crashing the kernel. Alan Stern ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
