selftests/bpf: Add missing bpf_iter_vma_offset__destroy call
authorJiri Olsa <jolsa@kernel.org>
Thu, 6 Oct 2022 08:31:06 +0000 (10:31 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 6 Oct 2022 17:11:38 +0000 (10:11 -0700)
commit1d2d941bc140b34587b4c889699fb0f89d29937f
tree46781d9f9f2ae0ccbec7c197ed4664dfe491902b
parent8206e4e95230daeeba43c59fc7c39656883ecd62
selftests/bpf: Add missing bpf_iter_vma_offset__destroy call

Adding missing bpf_iter_vma_offset__destroy call and using in-skeletin
link pointer so we don't need extra bpf_link__destroy call.

Fixes: b3e1331eb925 ("selftests/bpf: Test parameterized task BPF iterators.")
Cc: Kui-Feng Lee <kuifeng@fb.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20221006083106.117987-1-jolsa@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_iter.c