wifi: ath12k: fix invalid m3 buffer address
authorWen Gong <quic_wgong@quicinc.com>
Tue, 10 Oct 2023 07:27:21 +0000 (10:27 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 12 Oct 2023 16:06:29 +0000 (19:06 +0300)
commitc42c2b8224c40f91f5f4984cc721d33ab10c7d43
treec264eb96e5c481b82b64fae2cbe317d179cfb6d2
parent92448f8718baf8a8a940c210f04d0787a52e7507
wifi: ath12k: fix invalid m3 buffer address

This is to fix m3 buffer reuse issue as m3_mem->size isn't set to
zero in the free function, which leads invalid m3 downloading to
firmware and firmware crashing.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230721055305.20420-4-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath12k/qmi.c