> From: Martin Diehl <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Mon, 3 Dec 2001 00:21:14 +0100 (CET)
> On Sun, 2 Dec 2001, Mark Burazin wrote: > > > usb_submit_urb() can fail, but it will call the completion handler, while > > before it was not so, so I manually freed his urb and data when submit failed > > Do I understand you correctly, you've seen situations where usb_submit_urb > returns some error (which one) but the completion handler for this very > urb gets called later on? The Mark's description sounds like a bug but I think may be confused. The usb-uhci was not changed. > IMHO the returning of usb_submit_urb() should (and is, AFAICS) a clear > barrier indicating whether the completion handler will get called or not. Absolutely. Better say "The return code of usb_submit_urb() indicates if the callback was or will be called". If error is returned, no callback was or will be called for the URB. The past tense is for root hub and other imitation devices that deliver callbacks from inside of usb_submit_urb(). -- Pete _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel