]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: fix memory leak in ath12k_dp_rx_peer_frag_setup()
authorBaochen Qiang <quic_bqiang@quicinc.com>
Sun, 26 May 2024 12:42:26 +0000 (20:42 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 30 May 2024 15:49:22 +0000 (18:49 +0300)
commit3d60041543189438cd1b03a1fa40ff6681c77970
tree82e3dab4c99d1ddc1a02d0e2a2ea1c3b0d69a14c
parent0ae570703754858a77cc42b3c9fff42e9f084608
wifi: ath12k: fix memory leak in ath12k_dp_rx_peer_frag_setup()

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@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240526124226.24661-1-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath12k/dp_rx.c