From: Johan Hovold Date: Mon, 13 Mar 2017 12:44:20 +0000 (+0100) Subject: ath9k_htc: fix NULL-deref at probe X-Git-Tag: v3.2.92~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af4b41c56261592cd90c3ea196f6077c466fdd7a;p=pandora-kernel.git ath9k_htc: fix NULL-deref at probe commit ebeb36670ecac36c179b5fb5d5c88ff03ba191ec upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint array should a malicious device lack the expected endpoints. Fixes: 36bcce430657 ("ath9k_htc: Handle storage devices") Signed-off-by: Johan Hovold Signed-off-by: Kalle Valo Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed