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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 18 Jul 2017 17:38:34 +0000 (18:38 +0100)
commit3ae9936940b17d47899ea78188c68442dcc92395
treef907e946cd003ea11d7844c7ccd7aac2fe3dca6d
parent5a2a5e6c28b145bc90652899c0b9f34404caee75
Input: kbtab - validate number of endpoints before using them

commit cb1b494663e037253337623bf1ef2df727883cb7 upstream.

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>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/input/tablet/kbtab.c