Commit 655a1e90 authored by Hao Zeng's avatar Hao Zeng Committed by sanglipeng
Browse files

samples/bpf: Fix fout leak in hbm's run_bpf_prog

stable inclusion
from stable-v5.10.181
commit 7560ed6592ff4077528c239c71e91b19de985b97
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ

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



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

[ Upstream commit 23acb14a ]

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: default avatarHao Zeng <zenghao@kylinos.cn>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230411084349.1999628-1-zenghao@kylinos.cn


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