diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-06-30 14:52:45 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-03 19:47:35 +0200 |
| commit | 28a3e326fad2451bdb66b747dd1f7ccbb900eed6 (patch) | |
| tree | 9900efe0cceb16bb4364018926abb1961df32218 /tools/perf/scripts/python | |
| parent | 08d8814521885e67b1bdf6a3036ee264e3e58377 (diff) | |
HID: rmi: check report length before trimming sentinel bytes
rmi_check_sanity() trims trailing 0xff sentinel bytes, but its loop
reads data[valid_size - 1] before checking that valid_size is non-zero.
Reverse the condition so the length is proved before the last byte is
inspected.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
