summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/usb_wwan.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2015-08-17 18:35:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-18 20:07:10 +0300
commitd2958d1b8fb0cffa362b187c0375a5aff4fe3825 (patch)
tree16f62d358ea37187d783341aedf51bac4c74e145 /drivers/usb/serial/usb_wwan.c
parent9257f1daa8befd5c0a343031dd870236550e00c5 (diff)
downloadlinux-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/usb_wwan.c')
-rw-r--r--drivers/usb/serial/usb_wwan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c
index 2f805cb386a5..825305cb71d9 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 */