Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88eac2da authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

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: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 431c7482
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
	}