uhci.c would call the completion callback when the call to submit_urb
failed. This is a rare situation.
This patch only calls the completion handler if the URB successfully
completed immediately (as in the case of talking to the virtual root
hub).
JE
--- linux-2.4.19-pre3.orig/drivers/usb/uhci.c Sun Mar 17 11:29:13 2002
+++ linux-2.4.19-pre3/drivers/usb/uhci.c Sun Mar 17 11:13:57 2002
@@ -1585,7 +1585,9 @@
spin_unlock(&urb->lock);
spin_unlock_irqrestore(&uhci->urb_list_lock, flags);
- uhci_call_completion(urb);
+ /* Only call completion if it was successful */
+ if (!ret)
+ uhci_call_completion(urb);
return ret;
}
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel