diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-12 18:08:03 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-15 23:48:44 +0400 |
commit | 88eac2dad876a58b9c6a4c4805c3fc27b02c048f (patch) | |
tree | 7a77584f2324bfbe9745932e89ce0f84d5f649bf /drivers/net/wireless/ath/ath9k | |
parent | 431c74821432a6078d54f08de7cd561f8ef8f1ba (diff) | |
download | linux-88eac2dad876a58b9c6a4c4805c3fc27b02c048f.tar.xz |
ath9k: add missing locking around ath9k_hw_proc_mib_event
ath9k_hw_proc_mib_event updates the cycle counters, so it common->cc_lock
must be acquired.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 74ff51d4c339..2c7f28e022b8 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -779,7 +779,9 @@ irqreturn_t ath_isr(int irq, void *dev) * it will clear whatever condition caused * the interrupt. */ + spin_lock(&common->cc_lock); ath9k_hw_proc_mib_event(ah); + spin_unlock(&common->cc_lock); ath9k_hw_set_interrupts(ah, ah->imask); } |