summaryrefslogtreecommitdiff
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-05-26 21:23:11 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 02:04:05 +0400
commitdd246f2c8c6be36fac10fc42157797429c6fdbb7 (patch)
treebc87253bd0e69a6f6c4a5cd7358504c577217d57 /drivers/usb/serial
parentacf47d4f9c39b1cba467aa9442fc2efe0b1da741 (diff)
downloadlinux-dd246f2c8c6be36fac10fc42157797429c6fdbb7.tar.xz
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 <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index 802c0693e5c9..2003a66c4807 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);