projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9426cd0
)
uwb: fix error handling
author
Oliver Neukum
<
[email protected]
>
Wed, 18 Apr 2012 08:05:55 +0000
(10:05 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 18 Apr 2012 20:15:51 +0000
(13:15 -0700)
Fatal errors such as a device disconnect must not trigger
error handling. The error returns must be checked.
Signed-off-by: Oliver Neukum <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/uwb/hwa-rc.c
patch
|
blob
|
history
diff --git
a/drivers/uwb/hwa-rc.c
b/drivers/uwb/hwa-rc.c
index 66797e9c5010d35cd5c21563a99faec79cd8a175..810c90ae2c5584fc57113813f2a9251422724840 100644
(file)
--- 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;