Skip to contentSkip to conversation

selftests/bpf: Add missing cleanup in atomic_bounds test

PATCH Applied Brendan Jackman 2 participants 2 messages Feb 8, 2021 – Feb 9, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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")

---

Differences from v1: this actually builds.

 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..69bd7853e8f1 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(skel);
 }

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

#1 lore raw
This patch was applied to bpf/bpf-next.git (refs/heads/master):

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

Quoted 8 lines · On Mon, 8 Feb 2021 12:37:37 +0000 you wrote:

Add missing skeleton destroy call.

Fixes 37086bfdc737 ("bpf: Propagate stack bounds to registers in atomics w/ BPF_FETCH")

---

[...]

Here is the summary with links:
- [v2,bpf-next] selftests/bpf: Add missing cleanup in atomic_bounds test

    https://git.kernel.org/bpf/bpf-next/c/1589a1fa4e38

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html