From: Johan Hovold Date: Mon, 13 Mar 2017 12:49:45 +0000 (+0100) Subject: watchdog: pcwd_usb: fix NULL-deref at probe X-Git-Tag: v3.2.93~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95bb1ba02a18f10f8ac61b72b56a0782f39f6f91;p=pandora-kernel.git watchdog: pcwd_usb: fix NULL-deref at probe commit 46c319b848268dab3f0e7c4a5b6e9146d3bca8a4 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 Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed