android_kernel_samsung_a7y1.../drivers/input/tablet
Johan Hovold a41b0c0c11 Input: aiptek - fix endpoint sanity check
commit 3111491fca4f01764e0c158c5e0f7ced808eef51 upstream.

The driver was checking the number of endpoints of the first alternate
setting instead of the current one, something which could lead to the
driver binding to an invalid interface.

This in turn could cause the driver to misbehave or trigger a WARN() in
usb_submit_urb() that kernels with panic_on_warn set would choke on.

Fixes: 8e20cf2bce12 ("Input: aiptek - fix crash on detecting device without endpoints")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Vladis Dronov <vdronov@redhat.com>
Link: https://lore.kernel.org/r/20191210113737.4016-3-johan@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:44:54 +02:00
..
acecad.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aiptek.c Input: aiptek - fix endpoint sanity check 2020-04-07 13:44:54 +02:00
gtco.c Input: gtco - fix endpoint sanity check 2020-04-07 13:44:52 +02:00
hanwang.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kbtab.c Input: kbtab - sanity check for endpoint type 2020-04-06 20:48:36 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wacom_serial4.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30