android_kernel_motorola_sm6225/drivers/net/wireless/ath/ath5k
Jiri Slaby c5e534e569 NET: ath5k, check ath5k_eeprom_mode_from_channel retval
It can, if invalid argument given, return a negative value. In that
case we would access arrays out-of-bounds and such. Check the value
and yell loudly if that happened as it would be a bug in the
implementation. (Instead of silently corrupting memory.)

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Cc: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-02-08 14:51:35 -05:00
..
ahb.c ath5k: Use module_platform_driver macro for ahb.c 2012-11-16 14:11:15 -05:00
ani.c ath: Add and use pr_fmt, convert printks to pr_<level> 2012-04-10 14:52:13 -04:00
ani.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
ath5k.h ath5k: Put power_level where it belongs and rename it 2012-08-10 15:26:57 -04:00
attach.c ath: Add and use pr_fmt, convert printks to pr_<level> 2012-04-10 14:52:13 -04:00
base.c wireless: make the reg_notifier() void 2013-01-14 11:32:44 +01:00
base.h ath5k: remove last references to "softc" 2011-08-08 16:04:14 -04:00
caps.c ath5k: MRR support and 2GHz radio override belong in ah_capabilities 2011-11-28 14:44:19 -05:00
debug.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2012-04-12 13:49:28 -04:00
debug.h treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
desc.c ath5k: Remove extraneous statements from ath5k_hw_proc_4word_tx_status and ath5k_hw_proc_2word_status. 2012-04-11 16:23:58 -04:00
desc.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
dma.c ath: Add and use pr_fmt, convert printks to pr_<level> 2012-04-10 14:52:13 -04:00
eeprom.c ath5k: fix wrong max power per rate eeprom reads for 802.11a 2012-08-21 14:58:20 -04:00
eeprom.h ath5k: fix wrong max power per rate eeprom reads for 802.11a 2012-08-21 14:58:20 -04:00
gpio.c ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
initvals.c ath: Add and use pr_fmt, convert printks to pr_<level> 2012-04-10 14:52:13 -04:00
Kconfig wireless: allow Atheros card to not depend on ath.ko 2012-11-30 13:38:16 -05:00
led.c ath5k: remove __dev* attributes 2012-12-06 15:04:56 -05:00
mac80211-ops.c ath5k: fix tx path skb leaks 2012-12-10 15:49:58 -05:00
Makefile ath5k: Move mac80211 functions into new file 2011-01-04 14:35:11 -05:00
pci.c ath5k: remove __dev* attributes 2012-12-06 15:04:56 -05:00
pcu.c mac80211: remove hw.conf.channel usage where possible 2012-04-13 14:32:50 -04:00
phy.c NET: ath5k, check ath5k_eeprom_mode_from_channel retval 2013-02-08 14:51:35 -05:00
qcu.c mac80211: remove hw.conf.channel usage where possible 2012-04-13 14:32:50 -04:00
reg.h ath5k: Switch from read-and-clear to write-to-clear method when handling PISR/SISR registers 2011-11-28 14:44:10 -05:00
reset.c NET: ath5k, check ath5k_eeprom_mode_from_channel retval 2013-02-08 14:51:35 -05:00
rfbuffer.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
rfgain.h ath5k: Cleanups v2 + add kerneldoc on all hw functions 2011-11-28 14:44:16 -05:00
rfkill.c ath5k: clean up base.h and its use 2011-08-08 16:04:14 -04:00
sysfs.c ath: Add and use pr_fmt, convert printks to pr_<level> 2012-04-10 14:52:13 -04:00
trace.h ath5k: avoid sparse warnings on tracing 2012-01-04 14:30:40 -05:00