From: Ben Greear Date: Thu, 30 Jun 2016 12:23:53 +0000 (+0300) Subject: ath10k: ensure txrx-compl-task is stopped when cleaning htt-tx X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=de0170beaa88bc5d7210a72db7cd5738a59bc23d;p=linux-beck.git 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 --- 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);