OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9fd85
)
cdc-wdm: pass return value of recover_from_urb_loss
author
YueHaibing
<yuehaibing@huawei.com>
Mon, 18 Feb 2019 14:34:51 +0000
(22:34 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 19 Feb 2019 13:41:38 +0000
(14:41 +0100)
'rv' is the correct return value, pass it upstream instead of 0
Fixes:
17d80d562fd7
("USB: autosuspend for cdc-wdm")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/cdc-wdm.c
b/drivers/usb/class/cdc-wdm.c
index
bec581f
..
9e9caff
100644
(file)
--- a/
drivers/usb/class/cdc-wdm.c
+++ b/
drivers/usb/class/cdc-wdm.c
@@
-1099,7
+1099,7
@@
static int wdm_post_reset(struct usb_interface *intf)
rv = recover_from_urb_loss(desc);
mutex_unlock(&desc->wlock);
mutex_unlock(&desc->rlock);
- return
0
;
+ return
rv
;
}
static struct usb_driver wdm_driver = {