]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Fix fout leak in hbm's run_bpf_prog
authorHao Zeng <zenghao@kylinos.cn>
Tue, 11 Apr 2023 08:43:49 +0000 (16:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:03 +0000 (12:44 +0100)
commita0ceb10fe784ecba4d369485013588d09860d124
tree43bcfebe6cac852a0cfd97c1255a232a072d8e08
parentbf44d2c016ead728a9420ff58a487f29b0576929
samples/bpf: Fix fout leak in hbm's run_bpf_prog

[ Upstream commit 23acb14af1914010dd0aae1bbb7fab28bf518b8e ]

Fix fout being fopen'ed but then not subsequently fclose'd. In the affected
branch, fout is otherwise going out of scope.

Signed-off-by: Hao Zeng <zenghao@kylinos.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230411084349.1999628-1-zenghao@kylinos.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
samples/bpf/hbm.c