diff options
author | Oliver Neukum <oliver@neukum.org> | 2012-04-18 10:05:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 13:15:51 -0700 |
commit | 5bd7b419ef2eb4989b207753e088c3437159618a (patch) | |
tree | 3d9dbdb4dd525bfba5504b960974a03b7a25d163 /drivers/uwb/hwa-rc.c | |
parent | 9426cd05682745d1024dbabdec5631309bd2f480 (diff) | |
download | op-kernel-dev-5bd7b419ef2eb4989b207753e088c3437159618a.zip op-kernel-dev-5bd7b419ef2eb4989b207753e088c3437159618a.tar.gz |
uwb: fix error handling
Fatal errors such as a device disconnect must not trigger
error handling. The error returns must be checked.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb/hwa-rc.c')
-rw-r--r-- | drivers/uwb/hwa-rc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/uwb/hwa-rc.c b/drivers/uwb/hwa-rc.c index 66797e9..810c90a 100644 --- a/drivers/uwb/hwa-rc.c +++ b/drivers/uwb/hwa-rc.c @@ -645,7 +645,8 @@ void hwarc_neep_cb(struct urb *urb) dev_err(dev, "NEEP: URB error %d\n", urb->status); } result = usb_submit_urb(urb, GFP_ATOMIC); - if (result < 0) { + if (result < 0 && result != -ENODEV && result != -EPERM) { + /* ignoring unrecoverable errors */ dev_err(dev, "NEEP: Can't resubmit URB (%d) resetting device\n", result); goto error; |