diff options
author | Johan Hovold <johan@kernel.org> | 2015-08-17 17:35:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-18 10:07:10 -0700 |
commit | d2958d1b8fb0cffa362b187c0375a5aff4fe3825 (patch) | |
tree | 16f62d358ea37187d783341aedf51bac4c74e145 /drivers/usb | |
parent | 9257f1daa8befd5c0a343031dd870236550e00c5 (diff) | |
download | talos-obmc-linux-d2958d1b8fb0cffa362b187c0375a5aff4fe3825.tar.gz talos-obmc-linux-d2958d1b8fb0cffa362b187c0375a5aff4fe3825.zip |
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')
-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 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 */ |