From: Johan Hovold Date: Mon, 26 May 2014 17:23:11 +0000 (+0200) Subject: USB: option: fix line-control pipe direction X-Git-Tag: v3.16-rc1~30^2~34^2~120 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=dd246f2c8c6be36fac10fc42157797429c6fdbb7;p=~emulex%2Finfiniband.git USB: option: fix line-control pipe direction The option line-control request has been using the wrong pipe direction, while relying on USB core to fix it up. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 802c0693e5c..2003a66c480 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1936,7 +1936,7 @@ static int option_send_setup(struct usb_serial_port *port) if (res) return res; - res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), + res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), 0x22, 0x21, val, priv->bInterfaceNumber, NULL, 0, USB_CTRL_SET_TIMEOUT);