mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
cdc-wdm: pass return value of recover_from_urb_loss
[ Upstream commit0742a338f5
] 'rv' is the correct return value, pass it upstream instead of 0 Fixes:17d80d562f
("USB: autosuspend for cdc-wdm") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
11d671a2d8
commit
2792ec5b8a
1 changed files with 1 additions and 1 deletions
|
@ -1085,7 +1085,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 = {
|
||||
|
|
Loading…
Reference in a new issue