]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix crash in ath_update_survey_stats
authorFelix Fietkau <nbd@openwrt.org>
Wed, 20 Oct 2010 13:59:28 +0000 (15:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Oct 2010 18:43:14 +0000 (14:43 -0400)
commit9a1f870819a585eed151df19c7c4265191a27e0a
treed45bf79b448f0eef91d1803f113df9343afef820
parent66fa5a042e3cbb563e7f1bdf547d2c5d474f2d88
ath9k: fix crash in ath_update_survey_stats

If ah->curchan is uninitialized, the channel index is bogus, which leads
to invalid memory access when the cycle counters are updated.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c