[PATCH] wifi: ath12k: fix memory leak in ath12k_dp_rx_peer_frag_setup()
Kalle Valo
kvalo at kernel.org
Thu May 30 08:49:28 PDT 2024
Baochen Qiang <quic_bqiang at quicinc.com> wrote:
> Currently the resource allocated by crypto_alloc_shash() is not
> freed in case ath12k_peer_find() fails, resulting in memory leak.
>
> Add crypto_free_shash() to fix it.
>
> This is found during code review, compile tested only.
>
> Signed-off-by: Baochen Qiang <quic_bqiang at quicinc.com>
> Acked-by: Jeff Johnson <quic_jjohnson at quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo at quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
3d6004154318 wifi: ath12k: fix memory leak in ath12k_dp_rx_peer_frag_setup()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240526124226.24661-1-quic_bqiang@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath12k
mailing list