usbatm: Detect usb device shutdown and ignore failed urbs
[powerpc.git] / drivers / usb / atm / usbatm.c
index 746d30f..b3f779f 100644 (file)
@@ -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);