USB: serial: quatech2: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Mon, 24 May 2021 09:17:05 +0000 (11:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jun 2021 10:01:42 +0000 (12:01 +0200)
commit4fa815beeaf04f46a92897898e9175d7cc6057bc
tree97a6c233bfe3c1e355aaa640bda051720c53d29d
parentef91a6bd946937c4db1e0a62b2c026811e3934a2
USB: serial: quatech2: fix control-request directions

commit eb8dbe80326c3d44c1e38ee4f40e0d8d3e06f2d0 upstream.

The direction of the pipe argument must match the request-type direction
bit or control requests may fail depending on the host-controller-driver
implementation.

Fix the three requests which erroneously used usb_rcvctrlpipe().

Fixes: f7a33e608d9a ("USB: serial: add quatech2 usb to serial driver")
Cc: stable@vger.kernel.org # 3.5
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/quatech2.c