]> git.baikalelectronics.ru Git - kernel.git/commit
Input: aiptek - fix crash on detecting device without endpoints
authorVladis Dronov <vdronov@redhat.com>
Tue, 1 Dec 2015 21:09:17 +0000 (13:09 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Dec 2015 17:35:41 +0000 (09:35 -0800)
commite678af3a5a9aafccd383504545bc7a7f0b3cab6c
treec221c89bcdbd9f2c5cd341ca39a96a9a3cec477f
parentfad2099832e3af0f38d141c3a4101a38633f6401
Input: aiptek - fix crash on detecting device without endpoints

The aiptek driver crashes in aiptek_probe() when a specially crafted USB
device without endpoints is detected. This fix adds a check that the device
has proper configuration expected by the driver. Also an error return value
is changed to more matching one in one of the error paths.

Reported-by: Ralf Spenneberg <ralf@spenneberg.net>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/aiptek.c