Oliver Neukum wrote: > A look through usbdevfs shows that there's no locking.
??? usbdevfs has devsem to prevent these races (it's a rwsem, reading used to access the device, disconnect requires taking the semaphore for writing, thus locking out readers). That's the way USB locking works. The driver has to protect itself against disconnect, and in case transfers are still going on when the disconnect function is called, the driver has to delay termination of the disconnect function until it is finished using the device. Tom _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel