aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/exceptions_fail.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2023-12-18 12:31:29 +0000
committerBartosz Golaszewski <[email protected]>2023-12-18 12:31:29 +0000
commit12b7f4ddfcb66dafed432cf4a987f5b40179c0f1 (patch)
tree1e57a7d047e575d891302fb68fdfcd682fe84a5f /tools/testing/selftests/bpf/progs/exceptions_fail.c
parentdt-bindings: gpio: dwapb: allow gpio-ranges (diff)
parentdevice property: Implement device_is_big_endian() (diff)
downloadkernel-12b7f4ddfcb66dafed432cf4a987f5b40179c0f1.tar.gz
kernel-12b7f4ddfcb66dafed432cf4a987f5b40179c0f1.zip
Merge tag 'device_is_big_endian-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core into gpio/for-next
Tag for the device_is_big_endian() addition to property.h For others to be able to pull from in a stable way. Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/exceptions_fail.c')
-rw-r--r--tools/testing/selftests/bpf/progs/exceptions_fail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/exceptions_fail.c b/tools/testing/selftests/bpf/progs/exceptions_fail.c
index 4c39e920dac2..8c0ef2742208 100644
--- a/tools/testing/selftests/bpf/progs/exceptions_fail.c
+++ b/tools/testing/selftests/bpf/progs/exceptions_fail.c
@@ -171,6 +171,7 @@ int reject_with_rbtree_add_throw(void *ctx)
return 0;
bpf_spin_lock(&lock);
bpf_rbtree_add(&rbtree, &f->node, rbless);
+ bpf_spin_unlock(&lock);
return 0;
}
@@ -214,6 +215,7 @@ int reject_with_cb_reference(void *ctx)
if (!f)
return 0;
bpf_loop(5, subprog_cb_ref, NULL, 0);
+ bpf_obj_drop(f);
return 0;
}