Explorar el Código

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>
Johan Hovold hace 13 años
padre
commit
67c88382e0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      include/linux/usb.h

+ 1 - 0
include/linux/usb.h

@@ -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;