net: hso: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Mon, 24 May 2021 09:25:11 +0000 (11:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 07:00:28 +0000 (09:00 +0200)
commit47da4f61422991c42af6fbbc75ccdd747f392068
tree42d9b0ef9627e806c8395e90e102d5e74ab914f2
parentfb003a1bd60358c0ccee0145079de258a6cf0ba8
net: hso: fix control-request directions

commit 1a6e9a9c68c1f183872e4bcc947382111c2e04eb 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 tiocmset and rfkill requests which erroneously used
usb_rcvctrlpipe().

Fixes: 72dc1c096c70 ("HSO: add option hso driver")
Cc: stable@vger.kernel.org # 2.6.27
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/hso.c