]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
cdc-wdm: pass return value of recover_from_urb_loss
authorYueHaibing <yuehaibing@huawei.com>
Mon, 18 Feb 2019 14:34:51 +0000 (22:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Feb 2019 13:41:38 +0000 (14:41 +0100)
'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>
drivers/usb/class/cdc-wdm.c

index bec581fb7c6361891a81a3a0aa88d3863b686f58..9e9caff905d52abcdb2048c6e580d1f17eb3cf9d 100644 (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 = {