mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 04:12:08 -05:00
USB: oti6858: forward USB errors to USB serial core
Forward errors from usb_submit_urb in open. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
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