Don't hang the system if an urb is submitted on a non-existant endpoint.
Should probably be checked higher up, but this is where I hit it.
uhci-hcd.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
--- a/drivers/usb/host/uhci-hcd.c Wed Mar 26 16:48:31 2003
+++ b/drivers/usb/host/uhci-hcd.c Wed Mar 26 16:48:31 2003
@@ -1080,7 +1080,7 @@
struct urb_priv *urbp = (struct urb_priv *)urb->hcpriv;
dma_addr_t data = urb->transfer_dma;
- if (len < 0)
+ if (len < 0 || !maxsze)
return -EINVAL;
/* The "pipe" thing contains the destination in bits 8--18 */
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel