mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
1589a1fa4e
Add missing skeleton destroy call.
Fixes: 37086bfdc7
("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
17 lines
321 B
C
17 lines
321 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <test_progs.h>
|
|
|
|
#include "atomic_bounds.skel.h"
|
|
|
|
void test_atomic_bounds(void)
|
|
{
|
|
struct atomic_bounds *skel;
|
|
__u32 duration = 0;
|
|
|
|
skel = atomic_bounds__open_and_load();
|
|
if (CHECK(!skel, "skel_load", "couldn't load program\n"))
|
|
return;
|
|
|
|
atomic_bounds__destroy(skel);
|
|
}
|