diff options
author | Oliver Neukum <oneukum@suse.de> | 2015-03-23 09:34:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 05:51:57 -0400 |
commit | 85e8a0b9a3565c8185068b6b340cc8c6dd4411f4 (patch) | |
tree | 0dcf1a99d1af2e74d2a8fba4f2000ac976c1fb47 | |
parent | 323ece54e0761198946ecd0c2091f1d2bfdfcb64 (diff) |
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>
-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 8e32b8d8115e..61ea87917433 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c | |||
@@ -522,9 +522,9 @@ retry: | |||
522 | spin_lock_irq(&desc->iuspin); | 522 | spin_lock_irq(&desc->iuspin); |
523 | 523 | ||
524 | if (desc->rerr) { /* read completed, error happened */ | 524 | if (desc->rerr) { /* read completed, error happened */ |
525 | rv = usb_translate_errors(desc->rerr); | ||
525 | desc->rerr = 0; | 526 | desc->rerr = 0; |
526 | spin_unlock_irq(&desc->iuspin); | 527 | spin_unlock_irq(&desc->iuspin); |
527 | rv = -EIO; | ||
528 | goto err; | 528 | goto err; |
529 | } | 529 | } |
530 | /* | 530 | /* |