[PATCH] wifi: ath12k: fix memory leak in ath12k_dp_rx_peer_frag_setup()
Jeff Johnson
quic_jjohnson at quicinc.com
Tue May 28 09:12:46 PDT 2024
On 5/26/2024 5:42 AM, Baochen Qiang 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>
More information about the ath12k
mailing list