Re: [PATCH] HID: core: do not allow parsing 0-sized reports
From: Jiri Kosina
Date: Thu Apr 09 2026 - 12:00:49 EST
On Tue, 31 Mar 2026, Dmitry Torokhov wrote:
> Commit d7db259bd6df ("HID: core: factor out hid_parse_collections()")
> reworked collection parsing code and inadvertently allowed returning
> "success" when parsing 0-sized reports where old code returned -EINVAL.
Ah, good catch, I've missed that.
Applied on top, thanks.
--
Jiri Kosina
SUSE Labs