android_kernel_samsung_msm8976/drivers/input/tablet
Vladis Dronov adaad9d866 Input: gtco - fix crash on detecting device without endpoints
commit 162f98dea487206d9ab79fc12ed64700667a894d upstream.

The gtco driver expects at least one valid endpoint. If given malicious
descriptors that specify 0 for the number of endpoints, it will crash in
the probe function. Ensure there is at least one endpoint on the interface
before using it.

Also let's fix a minor coding style issue.

The full correct report of this issue can be found in the public
Red Hat Bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=1283385

Reported-by: Ralf Spenneberg <ralf@spenneberg.net>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-06-07 10:42:51 +02:00
..
Kconfig Merge branch 'next' into for-linus 2012-03-27 00:27:10 -07:00
Makefile
acecad.c USB: input: acecad.c: fix up dev_* messages 2012-05-04 15:33:04 -07:00
aiptek.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2012-05-24 10:34:29 -07:00
gtco.c Input: gtco - fix crash on detecting device without endpoints 2016-06-07 10:42:51 +02:00
hanwang.c Input: hanwang - add support for Art Master II tablet 2012-07-13 00:14:27 -07:00
kbtab.c USB: input: kbtab.c: fix up dev_* messages 2012-05-04 15:33:11 -07:00
wacom.h Input: wacom - add 0xE5 (MT device) support 2012-04-29 21:13:53 -07:00
wacom_sys.c Input: wacom - make sure touch_max is set for touch devices 2014-03-31 09:58:14 -07:00
wacom_wac.c Input: wacom - add a new stylus (0x100802) for Intuos5 and Cintiqs 2013-06-18 23:20:53 -07:00
wacom_wac.h Input: wacom - add three new display tablets 2013-05-05 20:13:16 -07:00