[PATCH] wifi: ath12k: fix memory leak in ath12k_qmi_driver_event_work()

Kalle Valo kvalo at kernel.org
Wed Mar 22 03:05:28 PDT 2023


Rajat Soni <quic_rajson at quicinc.com> wrote:

> Currently the buffer pointed by event is not freed in case
> ATH12K_FLAG_UNREGISTERING bit is set, this causes memory leak.
> 
> Add a goto skip instead of return, to ensure event and all the
> list entries are freed properly.
> 
> 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.

960412bee0ea wifi: ath12k: fix memory leak in ath12k_qmi_driver_event_work()

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20230315090632.15065-1-quic_rajson@quicinc.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches




More information about the ath12k mailing list