Browse Source

USB: oti6858: forward USB errors to USB serial core

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>
Johan Hovold 13 years ago
parent
commit
d5e450ee4f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/serial/oti6858.c

+ 1 - 1
drivers/usb/serial/oti6858.c

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