diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-07-23 19:21:53 +0300 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-07-24 19:27:21 +0300 |
commit | acd34cfc48b3dd46e5e4c4bdc99cc0c15568bac0 (patch) | |
tree | 849436a46a6031b01a8d3c212240e77e0010477e /rust/helpers/mutex.c | |
parent | f64c1a4593391c57accf32693a14ef45f8162b5c (diff) | |
download | linux-acd34cfc48b3dd46e5e4c4bdc99cc0c15568bac0.tar.xz |
HID: bpf: prevent the same struct_ops to be attached more than once
If the struct_ops is already attached, we should bail out or we will
end up in various locks and pointer issues while unregistering.
Link: https://patch.msgid.link/20240723-fix-6-11-bpf-v1-3-b9d770346784@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions