]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: fix RF bank initialization
authorFelix Fietkau <nbd@openwrt.org>
Sun, 13 Jan 2013 18:54:58 +0000 (19:54 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jan 2013 20:58:48 +0000 (15:58 -0500)
commit8832d7736da7929ba7912f4c300e859010b753ce
treedfb12528fda23fe50a3dfec66e0a65f1f1337549
parentfdcb6c9fe90d6f3c8bee33c636abacc561b5b9ee
ath9k_hw: fix RF bank initialization

ar900*_init_mode_regs needs to be called before RF banks are allocated,
otherwise the storage size of RF banks isn't known. This patch fixes
a memory overrun that can show up as a crash on unloading the module.

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