On Thu, 29 Jul 2004, Pete Zaitcev wrote:

> > Remember also that disconnect() occuring while an URB is active will cause 
> > the URB to be aborted.  So it ought to be enough to unlock the device 
> > before submitting the URB.
> 
> What if the disconnect thread has time to free the device struct while
> your usb_submit_urb is being processed, but before the urb is settled
> with HC driver, so that it can be aborted?

Clearly usbfs needs to call usb_get_dev() before unlocking the device.
That goes without saying; I'm sorry if my previous message gave the 
impression I thought this step wasn't necessary.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to