summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorZhipeng Lu <alexious@zju.edu.cn>2024-01-26 10:53:34 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:16:39 +0300
commit8e243ac649c10922a6b4855170eaefe4c5b3faab (patch)
tree15c032179ea7f0ec00488f326d302579d02d9847 /tools/lib/bpf/libbpf.c
parent387ed40d870c92ee98e02ab867f1c0e3b467cb1a (diff)
downloadlinux-8e243ac649c10922a6b4855170eaefe4c5b3faab.tar.xz
wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
[ Upstream commit 5f0e4aede01cb01fa633171f0533affd25328c3a ] In the for statement of lbs_allocate_cmd_buffer(), if the allocation of cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer(). Fixes: 876c9d3aeb98 ("[PATCH] Marvell Libertas 8388 802.11b/g USB driver") Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://msgid.link/20240126075336.2825608-1-alexious@zju.edu.cn Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions