Commit c0921611 authored by Johan Hovold's avatar Johan Hovold Committed by Lee Jones
Browse files

Input: usbtouchscreen - fix control-request directions



commit 41e81022 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 four control requests which erroneously used usb_rcvctrlpipe().

Fixes: 1d3e2023 ("[PATCH] USB: usbtouchscreen: unified USB touchscreen driver")
Fixes: 24ced062 ("usbtouchscreen: add support for DMC TSC-10/25 devices")
Fixes: 9e3b2583 ("Input: usbtouchscreen - add support for e2i touchscreen controller")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org      # 2.6.17
Link: https://lore.kernel.org/r/20210524092048.4443-1-johan@kernel.org


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ic2f93b3259fa33a6f9cbd980c9d5c75d9df79149
parent 33a777dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment