USB: oti6858: forward USB errors to USB serial core
authorJohan Hovold <jhovold@gmail.com>
Thu, 10 Nov 2011 13:58:32 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 18:47:44 +0000 (10:47 -0800)
Forward errors from usb_submit_urb in open.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/oti6858.c

index 6770ad0d505bcb702db8832bd0c4abee8e30b3ff..2161d1c3c089fa7d841ad516d06c5a1dd03f97f9 100644 (file)
@@ -585,7 +585,7 @@ static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port)
                dev_err(&port->dev, "%s(): usb_submit_urb() failed"
                               " with error %d\n", __func__, result);
                oti6858_close(port);
-               return -EPROTO;
+               return result;
        }
 
        /* setup termios */