Commit:     7d5e1dd40bd5ced457be178e4f0b1267a3df2142
Parent:     5c975acb99168827a8ce5453be0e44ad2e4b70b2
Author:     Simon Arlott <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 26 00:38:04 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 13:28:41 2007 -0700

    usbatm: Detect usb device shutdown and ignore failed urbs
    Detect usb device shutdown and ignore failed urbs.  This happens when the
    driver is unloaded or the device is unplugged.
    I'm not sure what other urb statuses should be ignored, and the warning
    message doesn't need to be shown when the module is unloaded or the device
    is removed.
    Signed-off-by: Simon Arlott <[EMAIL PROTECTED]>
    Cc: Duncan Sands <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/atm/usbatm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c
index 746d30f..b3f779f 100644
--- a/drivers/usb/atm/usbatm.c
+++ b/drivers/usb/atm/usbatm.c
@@ -274,6 +274,9 @@ static void usbatm_complete(struct urb *urb)
                        (!(channel->usbatm->flags & UDSL_IGNORE_EILSEQ) ||
                         urb->status != -EILSEQ ))
+               if (urb->status == -ESHUTDOWN)
+                       return;
                if (printk_ratelimit())
                        atm_warn(channel->usbatm, "%s: urb 0x%p failed (%d)!\n",
                                __func__, urb, urb->status);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to