USB: usb_wwan: silence read errors on disconnect
authorJohan Hovold <johan@kernel.org>
Mon, 17 Aug 2015 15:35:24 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2015 17:07:10 +0000 (10:07 -0700)
Silence read-urb resubmission errors when the device is going away.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c

index 2f805cb..825305c 100644 (file)
@@ -282,7 +282,7 @@ static void usb_wwan_indat_callback(struct urb *urb)
        /* Resubmit urb so we continue receiving */
        err = usb_submit_urb(urb, GFP_ATOMIC);
        if (err) {
-               if (err != -EPERM) {
+               if (err != -EPERM && err != -ENODEV) {
                        dev_err(dev, "%s: resubmit read urb failed. (%d)\n",
                                __func__, err);
                        /* busy also in error unless we are killed */