From: Jiri Kosina <jikos@kernel.org>
To: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] HID: bpf: return non NULL data pointer when CONFIG_HID_BPF is not set
Date: Wed, 16 Nov 2022 23:01:09 +0100 (CET) [thread overview]
Message-ID: <nycvar.YFH.7.76.2211162300500.6045@cbobk.fhfr.pm> (raw)
In-Reply-To: <20221116103110.1746497-1-benjamin.tissoires@redhat.com>
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
prev parent reply other threads:[~2022-11-16 22:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 10:31 Benjamin Tissoires
2022-11-16 22:01 ` Jiri Kosina [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nycvar.YFH.7.76.2211162300500.6045@cbobk.fhfr.pm \
--to=jikos@kernel.org \
--cc=benjamin.tissoires@redhat.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®