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:
Johan Hovold 2011-11-10 14:58:32 +01:00 committed by Greg Kroah-Hartman
parent 7da02cdcdf
commit d5e450ee4f

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