summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2011-11-10 14:58:30 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-15 19:47:43 +0100
commitb58a64624ccdaa72f8d9000afddf2ba1865ac498 (patch)
tree7000f1fef48287ca5d2d04fb9fc20a0bb689d232
parentUSB: cp210x: forward USB errors to USB serial core (diff)
downloadlinux-b58a64624ccdaa72f8d9000afddf2ba1865ac498.tar.xz
linux-b58a64624ccdaa72f8d9000afddf2ba1865ac498.zip
USB: iuu_phoenix: forward USB errors to USB serial core
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>
-rw-r--r--drivers/usb/serial/iuu_phoenix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c
index 6aca631a407a..64d0ffd4440b 100644
--- 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;
}