cdc-wdm: pass return value of recover_from_urb_loss
[ Upstream commit 0742a338f5b3446a26de551ad8273fb41b2787f2 ] 'rv' is the correct return value, pass it upstream instead of 0 Fixes: 17d80d562fd7 ("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
71a5a54fbc
commit
e705eb9f45
|
@ -1098,7 +1098,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 New Issue
Block a user