# Re: \[PATCH 0/2\] HID: bpf: add one ssize\_t check detected by Sashiko

- From: Benjamin Tissoires \<bentiss@kernel.org\>
- Date: 2026-09-25 07:46:02 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2026/09/17640745
- Thread: https://ratatoskr.run/linux-input/2026/09/17580687/t.md

```text
On Tue, 15 Sep 2026 17:46:56 +0200, Benjamin Tissoires wrote:
> Sashiko detected an existing issue in hid_bpf_hw_request:
> if the transport layer returns an error code, hid_bpf_hw_request
> returns success, which can confuse the caller.
> 
> Add the actual fix and a selftest to ensure this gets properly passed
> around.
> 
> [...]

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.3/upstream-fixes), thanks!

[1/2] HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request
      https://git.kernel.org/hid/hid/c/3afefbfe55c2
[2/2] selftest/hid: add test for negative return codes for hid_bpf_hw_request
      https://git.kernel.org/hid/hid/c/3f35b678a1d6

Cheers,
-- 
Benjamin Tissoires [ref]

```
