diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-11-07 19:55:21 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-07 20:14:15 +0300 |
commit | 8c7a95520184b6677ca6075e12df9c208d57d088 (patch) | |
tree | 962f7846ac07f097a97c482b2ba6597835f235d5 /kernel/bpf/stackmap.c | |
parent | f91231eeeed752119f49eb6620cae44ec745a007 (diff) | |
download | linux-8c7a95520184b6677ca6075e12df9c208d57d088.tar.xz |
selftests/bpf: Fix bpf_object leak in skb_ctx selftest
skb_ctx selftest didn't close bpf_object implicitly allocated by
bpf_prog_test_load() helper. Fix the problem by explicitly calling
bpf_object__close() at the end of the test.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Hengqi Chen <hengqi.chen@gmail.com>
Link: https://lore.kernel.org/bpf/20211107165521.9240-10-andrii@kernel.org
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions