mirror of
https://github.com/torvalds/linux.git
synced 2026-10-15 20:30:02 +02:00
The input and output buffers are used to store complete HID-over-I2C 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-quicki2c.c | ||
| quicki2c-dev.h | ||
| quicki2c-hid.c | ||
| quicki2c-hid.h | ||
| quicki2c-protocol.c | ||
| quicki2c-protocol.h | ||