From: Johan Hovold Date: Thu, 10 Nov 2011 16:38:13 +0000 (+0100) Subject: USB: serial: do not forward USB specific errors in open X-Git-Tag: v3.3-rc1~153^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3827d8762febd68ff1b6db0bb5efa55bfbccaeb4;p=pandora-kernel.git USB: serial: do not forward USB specific errors in open Use usb_translate_errors() to map USB-specific errors to errors appropriate for user space (ENOMEM, ENODEV and EIO) in open. Currently almost all serial drivers simply forward error codes from the stack (e.g. from usb_submit_urb()), but these codes often have different meanings in user-space. Doing the mapping in usb-serial core simplifies driver code and allows for more consistent error reporting. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed