HID: Intel-thc-hid: Intel-quickspi: Fix buffer overflow

The input buffers are used to store complete HID-over-SPI packets,
including their protocol headers. However, their sizes are
currently calculated from the payload length only.

Allocate enough space for both the payload and the packet header to
prevent a buffer overflow when the payload reaches its maximum size.

Signed-off-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
Even Xu 2026-09-22 10:46:38 +08:00 • committed by Jiri Kosina
commit a1cdd72371