mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-18 05:36:57 +08:00
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From e52b6a02bfc00d74cee385dea60f9894121c1f2d Mon Sep 17 00:00:00 2001
|
|
From: Carl Huang <quic_cjhuang@quicinc.com>
|
|
Date: Mon, 14 Feb 2022 19:53:16 +0200
|
|
Subject: [PATCH] ath11k: fix invalid m3 buffer address
|
|
|
|
This is to fix m3 buffer reuse issue as m3_mem->size isn't set to
|
|
ZERO in free function, which leads invalid m3 downloading to
|
|
firmware and firmware crashed.
|
|
|
|
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2
|
|
|
|
Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
|
|
Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
|
|
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
|
|
Link: https://lore.kernel.org/r/20220209060012.32478-3-quic_wgong@quicinc.com
|
|
---
|
|
drivers/net/wireless/ath/ath11k/qmi.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/qmi.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
|
|
@@ -2342,6 +2342,7 @@ static void ath11k_qmi_m3_free(struct at
|
|
dma_free_coherent(ab->dev, m3_mem->size,
|
|
m3_mem->vaddr, m3_mem->paddr);
|
|
m3_mem->vaddr = NULL;
|
|
+ m3_mem->size = 0;
|
|
}
|
|
|
|
static int ath11k_qmi_wlanfw_m3_info_send(struct ath11k_base *ab)
|