OpenCloudOS-Kernel/drivers/net/wireless/iwmc3200wifi
Dan Carpenter f9a703e173 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>
2011-10-14 14:48:15 -04:00
..
Kconfig
Makefile
bus.h
cfg80211.c iwmc3200wifi: add a range check to iwm_cfg80211_get_key() 2011-10-14 14:48:15 -04:00
cfg80211.h
commands.c
commands.h
debug.h
debugfs.c
eeprom.c
eeprom.h
fw.c drivers/net: Remove unnecessary semicolons 2011-06-05 14:33:40 -07:00
fw.h
hal.c Fix common misspellings 2011-03-31 11:26:23 -03:00
hal.h
iwm.h
lmac.h
main.c
netdev.c iwmc3200wifi: Return proper error for iwm_if_alloc 2011-01-13 15:46:44 -05:00
rx.c cfg80211: Use consistent BSS matching between scan and sme 2011-05-19 10:37:18 -04:00
rx.h
sdio.c
sdio.h
trace.c
trace.h
tx.c Fix common misspellings 2011-03-31 11:26:23 -03:00
umac.h