]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: quatech2: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Mon, 24 May 2021 09:17:05 +0000 (11:17 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 25 May 2021 05:58:10 +0000 (07:58 +0200)
commitb942a369e3cdd3b166f988221de8c5b1a079d5e1
tree0135036976b67dd614b33509b70abdb56e08c43d
parent4bcf1de3ed55e86ca9548458e1e3bea8a5b11f1f
USB: serial: quatech2: fix control-request directions

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: 2aa42ae2e9ed ("USB: serial: add quatech2 usb to serial driver")
Cc: stable@vger.kernel.org # 3.5
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/quatech2.c