diff options
author | Vicki Pfau <vi@endrift.com> | 2023-12-19 19:38:36 -0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-01-02 11:20:43 +0100 |
commit | 43565b6788d46820da7d8f5ab1a595398419e914 (patch) | |
tree | e7ac8ed777fcc3d4dc55ade45d82ee80ebd313f2 /tools/testing/radix-tree/linux/xarray.h | |
parent | 4f9a5a9769cc77075e606537e15747e8b8e9c7c9 (diff) |
HID: hid-steam: Better handling of serial number length
The second byte of the GET_STRING_ATTRIB report is a length, so we should set
the size of the buffer to be the size we're actually requesting, and only
reject the reply if the length out is nonsensical.
Signed-off-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/testing/radix-tree/linux/xarray.h')
0 files changed, 0 insertions, 0 deletions