linux/drivers/input/tablet
Vladis Dronov 162f98dea4 Input: gtco - fix crash on detecting device without endpoints
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>
2016-03-31 13:10:00 -07:00
..
acecad.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
aiptek.c Input: aiptek - fix crash on detecting device without endpoints 2015-12-02 09:35:41 -08:00
gtco.c Input: gtco - fix crash on detecting device without endpoints 2016-03-31 13:10:00 -07:00
hanwang.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
kbtab.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
Kconfig Merge branch 'wacom' into next 2014-08-06 23:31:48 -07:00
Makefile Merge branch 'wacom' into next 2014-08-06 23:31:48 -07:00
wacom_serial4.c Input: wacom_serial4 - prepare for wacom USB moving to HID 2014-07-25 18:26:06 -07:00