Skip to content

Commit

Permalink
selftests/bpf: Add missing cleanup in atomic_bounds test
Browse files Browse the repository at this point in the history
Add missing skeleton destroy call.

Fixes: 37086bf ("bpf: Propagate stack bounds to registers in atomics w/ BPF_FETCH")
Reported-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210208123737.963172-1-jackmanb@google.com
  • Loading branch information
Brendan Jackman authored and Andrii Nakryiko committed Feb 9, 2021
1 parent 11da9f0 commit 1589a1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/testing/selftests/bpf/prog_tests/atomic_bounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 1589a1f

Please sign in to comment.