diff options
author | Johan Hovold <johan@kernel.org> | 2015-08-17 15:35:24 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-18 17:07:10 (GMT) |
commit | d2958d1b8fb0cffa362b187c0375a5aff4fe3825 (patch) | |
tree | 16f62d358ea37187d783341aedf51bac4c74e145 /drivers/usb/serial | |
parent | 9257f1daa8befd5c0a343031dd870236550e00c5 (diff) | |
download | linux-d2958d1b8fb0cffa362b187c0375a5aff4fe3825.tar.xz |
USB: usb_wwan: silence read errors on disconnect
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>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/usb_wwan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index 2f805cb..825305c 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c @@ -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 */ |