]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: hso: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Mon, 24 May 2021 09:25:11 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 20:16:58 +0000 (13:16 -0700)
commit1a6e9a9c68c1f183872e4bcc947382111c2e04eb
treede655f2239c1ad944ba4ccd07deec7c6a445c12c
parent1a44fb38cc65bc30bac490291412aa1940659fe1
net: hso: 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 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>
drivers/net/usb/hso.c