1
0
Fork 0

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>
hifive-unleashed-5.1
Oliver Neukum 2015-03-23 14:34:43 +01:00 committed by Greg Kroah-Hartman
parent 323ece54e0
commit 85e8a0b9a3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/*