]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9ab505eae0681a2b77304a61a99e1ca758499b8
treeaec276a8d95842b6e3885270d902c3c78deee435
parent46efed3efea51e99df4d0d12782266d577d21e3f
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