From: Felix Fietkau Date: Tue, 12 Oct 2010 14:08:03 +0000 (+0200) Subject: ath9k: add missing locking around ath9k_hw_proc_mib_event X-Git-Tag: v2.6.37-rc1~147^2~78^2^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=88eac2dad876a58b9c6a4c4805c3fc27b02c048f;p=karo-tx-linux.git 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 Signed-off-by: John W. Linville --- 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); }