Re: [PATCH] HID: gpd: fix report descriptor on GPD Win handheld (2f24:0137)

From: Jiri Kosina

Date: Mon Mar 30 2026 - 10:29:11 EST


On Tue, 24 Mar 2026, honjow wrote:

> The OEM USB HID interface found on GPD Win handhelds (VID 2f24, registered
> to ShenZhen HuiJiaZhi / GameSir, PID 0137) declares 63-byte Input and
> Feature reports for Report ID 1, but the firmware only transfers 11 data
> bytes per interrupt.
>
> Since commit 0a3fe972a7cb ("HID: core: Mitigate potential OOB by removing
> bogus memset()"), the HID core rejects undersized reports instead of zero-
> padding them. This breaks the device entirely on kernels >= v7.0-rc5.
>
> Fix it by patching the report descriptor in report_fixup(), reducing
> Report Count from 63 to 11 for both Input and Feature.
>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221271
> Signed-off-by: honjow <honjow311@xxxxxxxxx>

I have added Fixes: tag and applied to hid.git#for-7.0/upstream-fixes,
thanks.

--
Jiri Kosina
SUSE Labs