Commit 759c9a37 authored by YueHaibing's avatar YueHaibing Committed by Kleber Sacilotto de Souza

cdc-wdm: pass return value of recover_from_urb_loss

BugLink: https://bugs.launchpad.net/bugs/1864773

[ Upstream commit 0742a338 ]

'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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 95e6d280
...@@ -1103,7 +1103,7 @@ static int wdm_post_reset(struct usb_interface *intf) ...@@ -1103,7 +1103,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