cdc-wdm: pass return value of recover_from_urb_loss

'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>
This commit is contained in:
YueHaibing 2019-02-18 22:34:51 +08:00 committed by Greg Kroah-Hartman
parent 8e9fd85c59
commit 0742a338f5

View File

@ -1099,7 +1099,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 = {