commit | 99089ab756a26c8f1be5942178bf9b3fa9ae54d6 | [log] [tgz] |
---|---|---|
author | Kalle Valo <kvalo@qca.qualcomm.com> | Sun Mar 10 07:51:29 2013 +0200 |
committer | Kalle Valo <kvalo@qca.qualcomm.com> | Mon Mar 18 13:50:19 2013 +0200 |
tree | 62a524f0dd24f7b0e1d80c4e098cc036c8e280e8 | |
parent | aa8705fc65a395d79bdc8bb82a89bcf9abe9f3a4 [diff] |
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 <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>