aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-12 10:08:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-15 15:48:44 -0400
commit88eac2dad876a58b9c6a4c4805c3fc27b02c048f (patch)
tree7a77584f2324bfbe9745932e89ce0f84d5f649bf
parent431c74821432a6078d54f08de7cd561f8ef8f1ba (diff)
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>
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c2
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)
779 * it will clear whatever condition caused 779 * it will clear whatever condition caused
780 * the interrupt. 780 * the interrupt.
781 */ 781 */
782 spin_lock(&common->cc_lock);
782 ath9k_hw_proc_mib_event(ah); 783 ath9k_hw_proc_mib_event(ah);
784 spin_unlock(&common->cc_lock);
783 ath9k_hw_set_interrupts(ah, ah->imask); 785 ath9k_hw_set_interrupts(ah, ah->imask);
784 } 786 }
785 787