]> git.baikalelectronics.ru Git - 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)
commit0c48ffae7f0af902cc649380e436815dc8a2009b
treede655f2239c1ad944ba4ccd07deec7c6a445c12c
parent751d0e1a9b32c760b8f68dbcf8c0543745ac2a20
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: a3f20b1d831b ("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