]> git.dujemihanovic.xyz Git - linux.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)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 13 Apr 2023 13:08:45 +0000 (15:08 +0200)
commit23acb14af1914010dd0aae1bbb7fab28bf518b8e
tree189633740deeb90027a1df8c0cd583b25e3801d8
parent1ba83f505c53d35eda892ac7f108ef1189da6fa8
samples/bpf: Fix fout leak in hbm's run_bpf_prog

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
samples/bpf/hbm.c