ChangeSet 1.808.2.20, 2002/10/28 11:50:48-08:00, greg@kroah.com USB: fix the usb net drivers due to interrupt urb no automatic resubmission change to the usb core. diff -Nru a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c --- a/drivers/usb/net/usbnet.c Mon Oct 28 13:52:37 2002 +++ b/drivers/usb/net/usbnet.c Mon Oct 28 13:52:37 2002 @@ -449,10 +449,24 @@ { int status = urb->status; + switch (status) { + case 0: + /* success */ + break; + case -ECONNRESET: + case -ENOENT: + case -ESHUTDOWN: + /* this urb is terminated, clean up */ + dbg("%s - urb shutting down with status: %d", __FUNCTION__, status); + return; + default: + dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status); + } + + status = usb_submit_urb (urb, GFP_ATOMIC); if (status) - dbg ("gl_interrupt_complete fail - %X", status); - else - dbg ("gl_interrupt_complete success..."); + err ("%s - usb_submit_urb failed with result %d", + __FUNCTION__, status); } static int gl_interrupt_read (struct usbnet *dev)