From: Johan Hovold Date: Thu, 16 Mar 2017 18:41:55 +0000 (-0700) Subject: Input: kbtab - validate number of endpoints before using them X-Git-Tag: v3.2.91~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ae9936940b17d47899ea78188c68442dcc92395;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed