Input: xpad - validate USB endpoint count during probe
authorCameron Gutman <aicommander@gmail.com>
Wed, 29 Jun 2016 16:51:35 +0000 (09:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Jun 2016 17:07:47 +0000 (10:07 -0700)
commitcaca925fca4fb30c67be88cacbe908eec6721e43
treef3a0cee72b30fdb96e316f39b42516481eb399b6
parent9a9b6aa6a8759c83024627d681eff982d6ee03b7
Input: xpad - validate USB endpoint count during probe

This prevents a malicious USB device from causing an oops.

Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c