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:
2479e2a
)
USB: iuu_phoenix: forward USB errors to USB serial core
author
Johan Hovold
<jhovold@gmail.com>
Thu, 10 Nov 2011 13:58:30 +0000
(14:58 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 15 Nov 2011 18:47:43 +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/iuu_phoenix.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/iuu_phoenix.c
b/drivers/usb/serial/iuu_phoenix.c
index 6aca631a407aa0891492b12c05259e4618ad333e..64d0ffd4440b948a8f4aeb6e31e5b450403249a6 100644
(file)
--- a/
drivers/usb/serial/iuu_phoenix.c
+++ b/
drivers/usb/serial/iuu_phoenix.c
@@
-1168,15
+1168,14
@@
static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port)
port->write_urb->transfer_buffer, 1,
read_rxcmd_callback, port);
result = usb_submit_urb(port->write_urb, GFP_KERNEL);
-
if (result) {
dev_err(&port->dev, "%s - failed submitting read urb,"
" error %d\n", __func__, result);
iuu_close(port);
- return -EPROTO;
} else {
dbg("%s - rxcmd OK", __func__);
}
+
return result;
}