lkml.org 
[lkml]   [2022]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] HID: bpf: return non NULL data pointer when CONFIG_HID_BPF is not set
On Wed, 16 Nov 2022, Benjamin Tissoires wrote:

> dispatch_hid_bpf_device_event() is supposed to return either an error,
> or a valid pointer to memory containing the data.
>
> Returning NULL simply makes a segfault when CONFIG_HID_BPF is not set
> for any processed event.
>
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

I have added

Fixes: 658ee5a64fcfbbf ("HID: bpf: allocate data memory for device_event BPF program")

and applied on top of the HID-BPF pile. Thanks,

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2022-11-16 23:01    [W:0.046 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site