diff options
| author | 2026-09-22 10:54:37 +0800 | |
|---|---|---|
| committer | 2026-09-23 18:50:01 +0200 | |
| commit | 291f4f310cc18ff8f5addbc3c9fbe33877283ec7 (patch) | |
| tree | df4ed1c56c92e5889b97c55418bb586f3851a7a8 /scripts/Makefile.thinlto | |
| parent | HID: Intel-thc-hid: Intel-quicki2c: Use hid_safe_input_report() (diff) | |
HID: Intel-thc-hid: Intel-quickspi: Use hid_safe_input_report()
Replace the deprecated hid_input_report() with
hid_safe_input_report(), which takes the allocated size of the input
report buffer and allows hid-core to validate the reported data length
against the actual buffer size.
Track the allocated size of qsdev->input_buf in the new input_len
field and pass it through quickspi_hid_send_report() to
hid_safe_input_report() to prevent potential out-of-bounds reads.
Fixes: 0a3fe972a7cb ("HID: core: Mitigate potential OOB by removing bogus memset()")
Signed-off-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
