diff mbox series

[-next] cdc-wdm: pass return value of recover_from_urb_loss

Message ID 20190218143451.14988-1-yuehaibing@huawei.com (mailing list archive)
State Mainlined
Commit 0742a338f5b3446a26de551ad8273fb41b2787f2
Headers show
Series [-next] cdc-wdm: pass return value of recover_from_urb_loss | expand

Commit Message

Yue Haibing Feb. 18, 2019, 2:34 p.m. UTC
'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>
---
 drivers/usb/class/cdc-wdm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index bec581f..9e9caff 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -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 = {