Alan Stern wrote:


I'm with Oliver on this one. What if a usb_reset_configuration() call was going on at the same time? The code here would set the state to NOTATTACHED and then reset_config would set it to ADDRESS. Not what we want.

So submit a patch to make reset_configuration() verify that the device is present before that. That scenario is rather unlikely; but it's of course worth handling correctly.

If the device is gone, it's gone. No semaphore can prevent that.

- Dave





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to