diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-03-31 23:04:13 -0700 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-04-09 17:59:54 +0200 |
| commit | 590204185d84635961b0ce2460784749c959a9b4 (patch) | |
| tree | b0b2de41e95c700755113b356e78aab8b62b2153 /tools/perf/scripts/python | |
| parent | 2fcc5e0ee7989154c4a5d169bcc9565cf2d62147 (diff) | |
HID: core: do not allow parsing 0-sized reports
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.
Restore the original behavior by doing an explicit check.
Note that the error message now differs from the generic "item fetching
failed at offset %u/%u" that is now used only for non-empty descriptors.
Fixes: d7db259bd6df ("HID: core: factor out hid_parse_collections()")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
