aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <[email protected]>2024-06-26 15:46:22 +0200
committerBenjamin Tissoires <[email protected]>2024-06-27 10:58:00 +0200
commitebae0b2a6f4b3b949f30f076fbc65d3b0bb04785 (patch)
tree8ec96bb7ba7659ab7bb01c1c20f02c96547e3895 /lib/memory-notifier-error-inject.c
parent9e16bada9299d74fcce1f6b03606a08a2c16da81 (diff)
HID: bpf: fix dispatch_hid_bpf_device_event uninitialized ret value
Looks like if a bpf program gets inserted and then removed, hdev->bpf.device_data is then allocated, but the loop iterating over the bpf program is never assigning ret. This is a problem and also revealed another bug in which only the last value of ret was checked. This effectively meant than only the last program in the chain could change the size of the incoming buffer. Reported-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/all/[email protected] Fixes: 4a86220e046d ("HID: bpf: remove tracing HID-BPF capability") Link: https://patch.msgid.link/[email protected] Acked-by: Jiri Kosina <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions