mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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>
This commit is contained in:
parent
9257f1daa8
commit
d2958d1b8f
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue