ath11k: fix invalid m3 buffer address
authorCarl Huang <quic_cjhuang@quicinc.com>
Mon, 14 Feb 2022 17:53:16 +0000 (19:53 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 21 Feb 2022 10:05:20 +0000 (12:05 +0200)
commite52b6a02bfc00d74cee385dea60f9894121c1f2d
treeaec276a8d95842b6e3885270d902c3c78deee435
parent5f71968e3c769b1d3c3cb0831ef870663b3c1f89
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