From: Johan Hovold Date: Mon, 13 Mar 2017 12:47:48 +0000 (+0100) Subject: USB: idmouse: fix NULL-deref at probe X-Git-Tag: v3.2.91~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cbbe6dafb1835e60d7cecfd795e6efb7e9cc337;p=pandora-kernel.git USB: idmouse: fix NULL-deref at probe commit b0addd3fa6bcd119be9428996d5d4522479ab240 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed