[PATCH ath-next] wifi: ath12k: fix reusing m3 memory
Vasanthakumar Thiagarajan
vasanthakumar.thiagarajan at oss.qualcomm.com
Wed Oct 29 02:32:52 PDT 2025
On 10/29/2025 7:37 AM, Baochen Qiang wrote:
> During firmware recovery or suspend/resume, m3 memory could be reused if
> the size of the new m3 binary is equal to or less than that of the
> existing memory. There will be issues for the latter case, since
> m3_mem->size will be updated with a smaller value and this value is
> eventually used in the free path, where the original total size should be
> used instead.
>
> To fix it, add a new member in m3_mem_region structure to track the original
> memory size and use it in free path.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
>
> Fixes: 05090ae82f44 ("wifi: ath12k: check M3 buffer size as well whey trying to reuse it")
> Signed-off-by: Baochen Qiang <baochen.qiang at oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan at oss.qualcomm.com>
More information about the ath12k
mailing list