From: Kalle Valo Date: Sun, 10 Mar 2013 05:51:29 +0000 (+0200) Subject: ath6kl: add an extra band check to ath6kl_wmi_beginscan_cmd() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~390^2^2~29^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99089ab756a26c8f1be5942178bf9b3fa9ae54d6;p=pandora-kernel.git ath6kl: add an extra band check to ath6kl_wmi_beginscan_cmd() Dan reported that smatch found a possible issue in ath6kl_wmi_beginscan_cmd() where we might access sc->supp_rates beyond the end. It shouldn't happen as ar->wiphy->bands always have just the first two bands set, but add an extra check just to be sure. Reported-by: Dan Carpenter Signed-off-by: Kalle Valo --- Reading git-diff-tree failed