summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-02-18 17:34:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-19 16:41:38 +0300
commit0742a338f5b3446a26de551ad8273fb41b2787f2 (patch)
tree6fd4038a75a5ada0a1d78ce9f37a09db1c5f9920 /drivers/usb/class
parent8e9fd85c59fb22f4dfa55d2d155401aa935d6ab4 (diff)
downloadlinux-0742a338f5b3446a26de551ad8273fb41b2787f2.tar.xz
cdc-wdm: pass return value of recover_from_urb_loss
'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>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-wdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index bec581fb7c63..9e9caff905d5 100644
--- 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 = {