projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9257f1d
)
USB: usb_wwan: silence read errors on disconnect
author
Johan Hovold
<johan@kernel.org>
Mon, 17 Aug 2015 15:35:24 +0000
(17:35 +0200)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/usb_wwan.c
b/drivers/usb/serial/usb_wwan.c
index 2f805cb386a5ae429ce9e0676a3311268ab273a6..825305cb71d9dda11ce5a429feaed075a959a508 100644
(file)
--- 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 */