Commit 7b6bc967 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

cdc-wdm: pass return value of recover_from_urb_loss

[ 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>
parent 109826fb
......@@ -1107,7 +1107,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 = {
......
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