ath10k: ensure txrx-compl-task is stopped when cleaning htt-tx
authorBen Greear <greearb@candelatech.com>
Thu, 30 Jun 2016 12:23:53 +0000 (15:23 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 8 Jul 2016 06:41:55 +0000 (09:41 +0300)
Otherwise, the txrx-compl-task may access some bad memory?

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_tx.c

index ae5b33fe5ba82b26d76c0559c7512b362d3404de..7c072b605bc7e8c7a865befb933210304fc18854 100644 (file)
@@ -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);
 
This page took 0.02856 seconds and 5 git commands to generate.