Baochen Qiang <quic_bqiang@xxxxxxxxxxx> 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@xxxxxxxxxxx> > Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx> > Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx> 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@xxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches