mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ath10k: disable napi before resource cleanup to avoid "use after free"
CE buffers are cleaned up prior to napi disable and this is causing NULL pointer dereference due to "use after free". Disable napi before resource cleanup to avoid "use after free". Signed-off-by: Govind Singh <govinds@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
752ed2a229
commit
393b9b0f83
1 changed files with 1 additions and 1 deletions
|
@ -731,9 +731,9 @@ static void ath10k_snoc_buffer_cleanup(struct ath10k *ar)
|
|||
static void ath10k_snoc_hif_stop(struct ath10k *ar)
|
||||
{
|
||||
ath10k_snoc_irq_disable(ar);
|
||||
ath10k_snoc_buffer_cleanup(ar);
|
||||
napi_synchronize(&ar->napi);
|
||||
napi_disable(&ar->napi);
|
||||
ath10k_snoc_buffer_cleanup(ar);
|
||||
ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot hif stop\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue