提交 d5e450ee 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: oti6858: forward USB errors to USB serial core

Forward errors from usb_submit_urb in open.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7da02cdc
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册