summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2015-03-23 16:34:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 12:51:57 +0300
commit85e8a0b9a3565c8185068b6b340cc8c6dd4411f4 (patch)
tree0dcf1a99d1af2e74d2a8fba4f2000ac976c1fb47 /drivers/usb/class
parent323ece54e0761198946ecd0c2091f1d2bfdfcb64 (diff)
downloadlinux-85e8a0b9a3565c8185068b6b340cc8c6dd4411f4.tar.xz
cdc-wdm: error returns need to be translated
One more case of error codes not correctly being correctly returned to user space. Signed-off-by: Olive Neukum <oneukum@suse.com>0 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-wdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index 8e32b8d8115e..61ea87917433 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -522,9 +522,9 @@ retry:
spin_lock_irq(&desc->iuspin);
if (desc->rerr) { /* read completed, error happened */
+ rv = usb_translate_errors(desc->rerr);
desc->rerr = 0;
spin_unlock_irq(&desc->iuspin);
- rv = -EIO;
goto err;
}
/*