]> git.baikalelectronics.ru Git - kernel.git/commit
USB: trancevibrator: fix control-request direction
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:31:09 +0000 (15:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 18:10:43 +0000 (20:10 +0200)
commite6ec4954be2bffa83a557198fa1f1bd8d5c2d26e
tree1f03ecfe79982eb76e52d3b47827f6e673b12f2f
parent4992a8b77a9d5a18f55a592262067748d334b939
USB: trancevibrator: fix control-request direction

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 set-speed request which erroneously used USB_DIR_IN and update
the default timeout argument to match (same value).

Fixes: 48c3e1ff169b ("USB: add PlayStation 2 Trance Vibrator driver")
Cc: stable@vger.kernel.org # 2.6.19
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210521133109.17396-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/trancevibrator.c