Skip to content

Commit

Permalink
USB: oti6858: forward USB errors to USB serial core
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Nov 15, 2011
1 parent 7da02cd commit d5e450e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/oti6858.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d5e450e

Please sign in to comment.