Input: kbtab - validate number of endpoints before using them
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 18:41:55 +0000 (11:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 16 Mar 2017 20:56:53 +0000 (13:56 -0700)
commitcb1b494663e037253337623bf1ef2df727883cb7
tree4ce7f194f1357eb9a8f577a9e599f31fc22f2c7f
parentba340d7b83703768ce566f53f857543359aa1b98
Input: kbtab - validate number of endpoints before using them

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer should a malicious device lack endpoints.

Signed-off-by: Johan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/kbtab.c