summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2011-11-06 19:06:34 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-15 10:43:14 -0800
commitdb6e9186c90188edea20aaa5161ea073440cc2a1 (patch)
treeb538b05a5f6ca18da4bc0db0dd7ccaa3f57d3499 /drivers/usb
parentac3695fb74f27ae36632bcc2d83c0f2c8c4a7ca2 (diff)
USB: pl2303: return errors from usb_submit_urb in open
Return errors from usb_submit_urb rather than EPROTO on errors in open. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/pl2303.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 9083d1e616b..506d1e930c3 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -507,7 +507,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
result = usb_serial_generic_submit_read_urb(port, GFP_KERNEL);
if (result) {
pl2303_close(port);
- return -EPROTO;
+ return result;
}
dbg("%s - submitting interrupt urb", __func__);
@@ -516,7 +516,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
dev_err(&port->dev, "%s - failed submitting interrupt urb,"
" error %d\n", __func__, result);
pl2303_close(port);
- return -EPROTO;
+ return result;
}
port->port.drain_delay = 256;
return 0;