projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7da02cd
)
USB: oti6858: forward USB errors to USB serial core
author
Johan Hovold
<jhovold@gmail.com>
Thu, 10 Nov 2011 13:58:32 +0000
(14:58 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 15 Nov 2011 18:47:44 +0000
(10:47 -0800)
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>
drivers/usb/serial/oti6858.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/oti6858.c
b/drivers/usb/serial/oti6858.c
index 6770ad0d505bcb702db8832bd0c4abee8e30b3ff..2161d1c3c089fa7d841ad516d06c5a1dd03f97f9 100644
(file)
--- a/
drivers/usb/serial/oti6858.c
+++ b/
drivers/usb/serial/oti6858.c
@@
-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 */