summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/htc.h
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2013-07-22 14:13:28 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2013-07-30 17:01:20 +0200
commit08fe9b40d055d4ace995a5e1e93c7c17573f17a5 (patch)
treef004ceaff3d860e7a875e1620c4421176a7ca11b /drivers/net/wireless/ath/ath10k/htc.h
parentath10k: create debugfs interface to trigger fw crash (diff)
downloadlinux-08fe9b40d055d4ace995a5e1e93c7c17573f17a5.tar.xz
linux-08fe9b40d055d4ace995a5e1e93c7c17573f17a5.zip
ath10k: prevent HTC from being used after stopping
It was possible to submit new HTC commands after/while HTC stopped. This led to memory corruption in some rare cases. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/htc.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/htc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h
index 1606c9f9dff3..e1dd8c761853 100644
--- a/drivers/net/wireless/ath/ath10k/htc.h
+++ b/drivers/net/wireless/ath/ath10k/htc.h
@@ -335,7 +335,7 @@ struct ath10k_htc {
struct ath10k *ar;
struct ath10k_htc_ep endpoint[ATH10K_HTC_EP_COUNT];
- /* protects endpoint and stopping fields */
+ /* protects endpoint and stopped fields */
spinlock_t tx_lock;
struct ath10k_htc_ops htc_ops;
@@ -349,7 +349,7 @@ struct ath10k_htc {
struct ath10k_htc_svc_tx_credits service_tx_alloc[ATH10K_HTC_EP_COUNT];
int target_credit_size;
- bool stopping;
+ bool stopped;
};
int ath10k_htc_init(struct ath10k *ar);