Commit 0742a338 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

cdc-wdm: pass return value of recover_from_urb_loss

'rv' is the correct return value, pass it upstream instead of 0

Fixes: 17d80d56 ("USB: autosuspend for cdc-wdm")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e9fd85c
...@@ -1099,7 +1099,7 @@ static int wdm_post_reset(struct usb_interface *intf) ...@@ -1099,7 +1099,7 @@ static int wdm_post_reset(struct usb_interface *intf)
rv = recover_from_urb_loss(desc); rv = recover_from_urb_loss(desc);
mutex_unlock(&desc->wlock); mutex_unlock(&desc->wlock);
mutex_unlock(&desc->rlock); mutex_unlock(&desc->rlock);
return 0; return rv;
} }
static struct usb_driver wdm_driver = { static struct usb_driver wdm_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment