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: io_uring-worker.v3-2021-02-25~99^2~28^2~40 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1589a1fa4e3832bd43742f111e6a883a28fe7ae9;p=linux-block.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 addf127068e4..69bd7853e8f1 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); }