summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorHaoxiang Li <haoxiang_li2024@163.com>2025-02-18 11:41:04 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-02 07:50:53 +0200
commit7f30987294b7ce36670333bf42f9386706e90a50 (patch)
tree5b79a2d44bb9310f46e57d8c1592e975ec00b8bb /tools/bpf/bpftool/prog.c
parent28e5a867aa542e369e211c2baba7044228809a99 (diff)
s390/tty: Fix a potential memory leak bug
[ Upstream commit ad9bb8f049717d64c5e62b2a44954be9f681c65b ] The check for get_zeroed_page() leads to a direct return and overlooked the memory leak caused by loop allocation. Add a free helper to free spaces allocated by get_zeroed_page(). Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Link: https://lore.kernel.org/r/20250218034104.2436469-1-haoxiang_li2024@163.com Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions