提交 e7491c50 编写于 作者: Y YueHaibing 提交者: Yang Yingliang

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: NYueHaibing <yuehaibing@huawei.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 aa609256
...@@ -1107,7 +1107,7 @@ static int wdm_post_reset(struct usb_interface *intf) ...@@ -1107,7 +1107,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册