From de0170beaa88bc5d7210a72db7cd5738a59bc23d Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Thu, 30 Jun 2016 15:23:53 +0300 Subject: [PATCH] ath10k: ensure txrx-compl-task is stopped when cleaning htt-tx Otherwise, the txrx-compl-task may access some bad memory? Signed-off-by: Ben Greear Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/htt_tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index ae5b33fe5ba8..7c072b605bc7 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -390,6 +390,8 @@ void ath10k_htt_tx_free(struct ath10k_htt *htt) { int size; + tasklet_kill(&htt->txrx_compl_task); + idr_for_each(&htt->pending_tx, ath10k_htt_tx_clean_up_pending, htt->ar); idr_destroy(&htt->pending_tx); -- 2.20.1