projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3827d87
)
USB: ch341: forward USB errors to USB serial core
author
Johan Hovold
<jhovold@gmail.com>
Thu, 10 Nov 2011 13:58:28 +0000
(14:58 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 15 Nov 2011 18:47:42 +0000
(10:47 -0800)
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: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ch341.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/ch341.c
b/drivers/usb/serial/ch341.c
index 8607f1522ef32db4036b0f0f644e422d04ab3cea..0e77511060c0795680941dc784753f58888ec014 100644
(file)
--- a/
drivers/usb/serial/ch341.c
+++ b/
drivers/usb/serial/ch341.c
@@
-340,7
+340,7
@@
static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port)
dev_err(&port->dev, "%s - failed submitting interrupt urb,"
" error %d\n", __func__, r);
ch341_close(port);
-
return -EPROTO
;
+
goto out
;
}
r = usb_serial_generic_open(tty, port);