mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
7da02cdcdf
commit
d5e450ee4f
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue