diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-07-22 14:13:28 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-07-30 18:01:20 +0300 |
commit | 08fe9b40d055d4ace995a5e1e93c7c17573f17a5 (patch) | |
tree | f004ceaff3d860e7a875e1620c4421176a7ca11b /drivers/net/wireless/ath/ath10k/htc.h | |
parent | 278c4a85e6267979ab164c0a8b57447005cf388c (diff) | |
download | op-kernel-dev-08fe9b40d055d4ace995a5e1e93c7c17573f17a5.zip op-kernel-dev-08fe9b40d055d4ace995a5e1e93c7c17573f17a5.tar.gz |
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.h | 4 |
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 1606c9f..e1dd8c7 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); |