mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 12:50:02 +02:00
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> |
||
|---|---|---|
| .. | ||
| pci-quickspi.c | ||
| quickspi-dev.h | ||
| quickspi-hid.c | ||
| quickspi-hid.h | ||
| quickspi-protocol.c | ||
| quickspi-protocol.h | ||