mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-15 09:55:36 +00:00
USB: add EOPNOTSUPP to usb_translate_errors
Allow drivers to return EOPNOTSUPP to user space even when filtered through usb_translate_errors. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0ca7eb235d
commit
67c88382e0
@ -1627,6 +1627,7 @@ static inline int usb_translate_errors(int error_code)
|
||||
case 0:
|
||||
case -ENOMEM:
|
||||
case -ENODEV:
|
||||
case -EOPNOTSUPP:
|
||||
return error_code;
|
||||
default:
|
||||
return -EIO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user