]> git.itanic.dy.fi Git - linux-stable/commit
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 06:22:04 +0000 (08:22 +0200)
commit077f87bfc545b779d33567e6b912bd41caf2e83e
tree66ee5e27d34126d34434700a32f87d1dc8dc730b
parent2f5500e3c8414351566777335af82e72381468f7
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