[PATCH] wifi: ath11k: fix memory leak in WMI firmware stats
Kalle Valo
kvalo at kernel.org
Tue Jun 13 02:15:02 PDT 2023
Aditya Kumar Singh <quic_adisi at quicinc.com> wrote:
> Memory allocated for firmware pdev, vdev and beacon statistics
> are not released during rmmod.
>
> Fix it by calling ath11k_fw_stats_free() function before hardware
> unregister.
>
> While at it, avoid calling ath11k_fw_stats_free() while processing
> the firmware stats received in the WMI event because the local list
> is getting spliced and reinitialised and hence there are no elements
> in the list after splicing.
>
> Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: P Praneesh <quic_ppranees at quicinc.com>
> Signed-off-by: Aditya Kumar Singh <quic_adisi at quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo at quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
6aafa1c2d3e3 wifi: ath11k: fix memory leak in WMI firmware stats
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230606091128.14202-1-quic_adisi@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath11k
mailing list