diff options
author | Oliver Neukum <oneukum@suse.de> | 2015-03-23 13:34:43 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 09:51:57 (GMT) |
commit | 85e8a0b9a3565c8185068b6b340cc8c6dd4411f4 (patch) | |
tree | 0dcf1a99d1af2e74d2a8fba4f2000ac976c1fb47 /drivers | |
parent | 323ece54e0761198946ecd0c2091f1d2bfdfcb64 (diff) | |
download | linux-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')
-rw-r--r-- | drivers/usb/class/cdc-wdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 8e32b8d..61ea879 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; } /* |