Skip to contentSkip to conversation

selftests/bpf: Add missing cleanup in atomic_bounds test

PATCH Superseded Brendan Jackman 1 participant 2 messages Feb 8, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 tools/testing/selftests/bpf/prog_tests/atomic_bounds.c | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/bpf/prog_tests/atomic_bounds.c +2 -0
index addf127068e4..290506fa1c38 100644
@@ -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()
 }

base-commit: 23a2d70c7a2f28eb1a8f6bc19d68d23968cad0ce

Signature · 1 line
2.30.0.478.g8a0d178c01-goog
#1 lore raw

Sorry this is garbage, I edited one tree and then built/tested a different one. Please ignore, v2 incoming.

Quoted 26 lines · Brendan Jackman

Add missing skeleton destroy call.

Fixes 37086bfdc737 ("bpf: Propagate stack bounds to registers in atomics w/ BPF_FETCH")
---
 tools/testing/selftests/bpf/prog_tests/atomic_bounds.c | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/bpf/prog_tests/atomic_bounds.c +2 -0
index addf127068e4..290506fa1c38 100644
@@ -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()
 }

base-commit: 23a2d70c7a2f28eb1a8f6bc19d68d23968cad0ce --
2.30.0.478.g8a0d178c01-goog