Commit c7f74e50 authored by Johan Hovold's avatar Johan Hovold Committed by Ben Hutchings

USB: ch341: forward USB errors to USB serial core

commit 06946a66 upstream.

All error messages from stack in open are being forwarded except for
one call to usb_submit_urb. Change this for consistency.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent e0e1e04e
...@@ -339,7 +339,7 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -339,7 +339,7 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port)
dev_err(&port->dev, "%s - failed submitting interrupt urb," dev_err(&port->dev, "%s - failed submitting interrupt urb,"
" error %d\n", __func__, r); " error %d\n", __func__, r);
ch341_close(port); ch341_close(port);
return -EPROTO; goto out;
} }
r = usb_serial_generic_open(tty, port); r = usb_serial_generic_open(tty, port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment