linux/drivers/input/tablet
Johan Hovold a8eeb74df5 Input: gtco - fix endpoint sanity check
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: 162f98dea4 ("Input: gtco - 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-5-johan@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2020-01-10 14:42:57 -08:00
..
acecad.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
aiptek.c Input: aiptek - use descriptors of current altsetting 2020-01-10 14:42:56 -08:00
gtco.c Input: gtco - fix endpoint sanity check 2020-01-10 14:42:57 -08:00
hanwang.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
kbtab.c Input: kbtab - sanity check for endpoint type 2019-08-01 10:55:21 -07:00
Kconfig Input: fix Kconfig indentation 2019-11-22 15:19:19 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pegasus_notetaker.c Input: pegasus_notetaker - fix endpoint sanity check 2020-01-10 14:42:53 -08:00
wacom_serial4.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 55 2019-05-24 17:36:42 +02:00