Commit 0742a338 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

cdc-wdm: pass return value of recover_from_urb_loss



'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>
parent 8e9fd85c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {