From: Brendan Jackman Date: Mon, 8 Feb 2021 12:37:37 +0000 (+0000) Subject: selftests/bpf: Add missing cleanup in atomic_bounds test X-Git-Tag: v5.15~1802^2~28^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1589a1fa4e3832bd43742f111e6a883a28fe7ae9;p=platform%2Fkernel%2Flinux-starfive.git selftests/bpf: Add missing cleanup in atomic_bounds test Add missing skeleton destroy call. Fixes: 37086bfdc737 ("bpf: Propagate stack bounds to registers in atomics w/ BPF_FETCH") Reported-by: Yonghong Song Signed-off-by: Brendan Jackman Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20210208123737.963172-1-jackmanb@google.com --- diff --git a/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c b/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c index addf127..69bd785 100644 --- a/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c +++ b/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c @@ -12,4 +12,6 @@ void test_atomic_bounds(void) skel = atomic_bounds__open_and_load(); if (CHECK(!skel, "skel_load", "couldn't load program\n")) return; + + atomic_bounds__destroy(skel); }