Skip to contentSkip to conversation

ath6kl: Fix race in heart beat polling

PATCH Applied Mohammed Shafi Shajakhan 2 participants 2 messages Jun 20, 2013 – Aug 7, 2013 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath6kl: Fix race in heart beat polling

From: Vasanthakumar Thiagarajan <[email protected]>

Make sure to cancel heart beat timer before
freeing wmi to avoid potential NULL pointer
dereference.

---
 drivers/net/wireless/ath/ath6kl/init.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/ath/ath6kl/init.c +3 -0
index 6a67881..4f316bd 100644
@@ -1836,6 +1836,9 @@ void ath6kl_stop_txrx(struct ath6kl *ar)
 
 	clear_bit(WMI_READY, &ar->flag);
 
+	if (ar->fw_recovery.enable)
+		del_timer_sync(&ar->fw_recovery.hb_timer);
+
 	/*
 	 * After wmi_shudown all WMI events will be dropped. We
 	 * need to cleanup the buffers allocated in AP mode and
Signature · 1 line
1.7.9.5