aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/boot.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-10-12 04:10:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-10-14 14:48:15 -0400
commitf9a703e173849425079e29e63bf960c2625e0a85 (patch)
treebebb01202223540fb20f5e4593fc6f8453188331 /drivers/net/wireless/wl12xx/boot.h
parentd83579e2a50ac68389e6b4c58b845c702cf37516 (diff)
iwmc3200wifi: add a range check to iwm_cfg80211_get_key()
Smatch complains that "key_index" is capped at 5 in nl80211_get_key() but iwm->keys[] only has 4 elements. I don't know if this is really needed, but the other ->get_key() implementations seemed to check for overflows so I've added a check here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/boot.h')
0 files changed, 0 insertions, 0 deletions