On Tue, Oct 09, 2001 at 09:23:09PM -0700, Greg KH wrote:
> 
> It happens with no devices plugged in on my machines.

Pete sent me this patch that fixes the problem for me.  Let me know if
it also works for everyone else.

thanks,

greg k-h

diff --minimal -Nru a/drivers/usb/uhci.c b/drivers/usb/uhci.c
--- a/drivers/usb/uhci.c        Tue Oct  9 21:56:17 2001
+++ b/drivers/usb/uhci.c        Tue Oct  9 21:56:17 2001
@@ -1488,6 +1488,7 @@
 
 static int uhci_submit_urb(struct urb *urb)
 {
+       struct usb_device *dev_tmp;
        int ret = -EINVAL;
        struct uhci *uhci;
        unsigned long flags;
@@ -1595,8 +1596,14 @@
 
        uhci_unlink_generic(uhci, urb);
        uhci_destroy_urb_priv(urb);
+       dev_tmp = urb->dev;
+       if (ret == 0) {
+               urb->dev = NULL;
+               if (urb->complete)
+                       urb->complete(urb);
+       }
 
-       usb_dec_dev_use(urb->dev);
+       usb_dec_dev_use(dev_tmp);
 
        return ret;
 }

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to