Commit 0d15457a authored by Miaoqian Lin's avatar Miaoqian Lin Committed by sanglipeng
Browse files

wifi: ath11k: Fix memory leak in ath11k_peer_rx_frag_setup

stable inclusion
from stable-v5.10.173
commit 137963e3b95776f1d57c62f249a93fe47e019a22
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=137963e3b95776f1d57c62f249a93fe47e019a22



--------------------------------

[ Upstream commit ed3f83b3 ]

crypto_alloc_shash() allocates resources, which should be released by
crypto_free_shash(). When ath11k_peer_find() fails, there has memory
leak. Add missing crypto_free_shash() to fix this.

Fixes: 243874c6 ("ath11k: handle RX fragments")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230102081142.3937570-1-linmq006@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 2afb5b5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment