[PATCH] wifi: ath12k: Fix memory leak in rx_desc and tx_desc
Kalle Valo
kvalo at kernel.org
Wed Aug 23 07:18:00 PDT 2023
Rajat Soni <quic_rajson at quicinc.com> wrote:
> Currently when ath12k_dp_cc_desc_init() is called we allocate
> memory to rx_descs and tx_descs. In ath12k_dp_cc_cleanup(), during
> descriptor cleanup rx_descs and tx_descs memory is not freed.
>
> This is cause of memory leak. These allocated memory should be
> freed in ath12k_dp_cc_cleanup.
>
> In ath12k_dp_cc_desc_init(), we can save base address of rx_descs
> and tx_descs. In ath12k_dp_cc_cleanup(), we can free rx_descs and
> tx_descs memory using their base address.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Rajat Soni <quic_rajson at quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo at quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
afb522b36e76 wifi: ath12k: Fix memory leak in rx_desc and tx_desc
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230718053510.30894-1-quic_rajson@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath12k
mailing list