From: Johan Hovold Date: Thu, 10 Nov 2011 13:58:30 +0000 (+0100) Subject: USB: iuu_phoenix: forward USB errors to USB serial core X-Git-Tag: MMI-PSA29.97-13-9~17726^2~65 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b58a64624ccdaa72f8d9000afddf2ba1865ac498;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git USB: iuu_phoenix: forward USB errors to USB serial core Forward errors from usb_submit_urb in open. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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; }