ath10k: merge some pending stability fixes
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 305-ath10k-Ensure-txrx-compl-task-is-stopped-when-cleani.patch
1 From: Ben Greear <greearb@candelatech.com>
2 Date: Fri, 1 Apr 2016 14:12:08 -0700
3 Subject: [PATCH] ath10k: Ensure txrx-compl-task is stopped when cleaning
4 htt-tx.
5
6 Otherwise, the txrx-compl-task may access some bad memory?
7
8 Signed-off-by: Ben Greear <greearb@candelatech.com>
9 ---
10
11 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c
12 +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c
13 @@ -388,6 +388,8 @@ void ath10k_htt_tx_free(struct ath10k_ht
14 {
15 int size;
16
17 + tasklet_kill(&htt->txrx_compl_task);
18 +
19 idr_for_each(&htt->pending_tx, ath10k_htt_tx_clean_up_pending, htt->ar);
20 idr_destroy(&htt->pending_tx);
21