]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix fclose/pclose mismatch in test_progs
authorAndrea Righi <andrea.righi@canonical.com>
Tue, 26 Oct 2021 14:34:09 +0000 (16:34 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 29 Oct 2021 15:48:43 +0000 (17:48 +0200)
commit65949c6ce55221c6882dc60782db6cbc13679386
treefe9a80dfafe850f6936d168d228b332ed572957c
parentd49db942b3833cb94465399a657c9762d7f06aca
selftests/bpf: Fix fclose/pclose mismatch in test_progs

Make sure to use pclose() to properly close the pipe opened by popen().

Fixes: 57748a0aec9c ("bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID")
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20211026143409.42666-1-andrea.righi@canonical.com
tools/testing/selftests/bpf/test_progs.c