]> www.infradead.org Git - users/hch/configfs.git/commit
selftests/hid: add test for attaching multiple time the same struct_ops
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 23 Jul 2024 16:21:54 +0000 (18:21 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 24 Jul 2024 16:27:22 +0000 (18:27 +0200)
commitfacdbdfe0e6202d74758387ae9189c39f7b4b16c
tree6f99efe47551af6644b5f81d5b9e6ea54bf9c7bf
parentacd34cfc48b3dd46e5e4c4bdc99cc0c15568bac0
selftests/hid: add test for attaching multiple time the same struct_ops

Turns out that we would en up in a bad state if we attempt to attach
twice the same HID-BPF struct_ops, so have a test for it.

Link: https://patch.msgid.link/20240723-fix-6-11-bpf-v1-4-b9d770346784@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c