[PATCH v2 1/2] HID: usbhid: adjust output pipe FIFO size
Dmitry Antipov <[email protected]>
| Newsgroups | org.kernel.vger.linux-input,org.kernel.vger.linux-usb |
|---|---|
| Message-ID | <[email protected]> |
For an USB-specific HID device, size of output FIFO should be HID_OUTPUT_FIFO_SIZE rather than HID_CONTROL_FIFO_SIZE. Reported-by: Sashiko <[email protected]> Closes: https://syzkaller.appspot.com/bug?extid=e2c057ea576d2644e2be Fixes: 4916b3a57fc9 ("[PATCH] Generic HID layer - USB API") Signed-off-by: Dmitry Antipov <[email protected]> --- v2: initial version to join the series --- drivers/hid/usbhid/usbhid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/usbhid/usbhid.h b/drivers/hid/usbhid/usbhid.h index 75fe85d3d27a..c408e694a7b2 100644 --- a/drivers/hid/usbhid/usbhid.h +++ b/drivers/hid/usbhid/usbhid.h @@ -74,7 +74,7 @@ struct usbhid_device { unsigned long last_ctrl; /* record of last output for timeouts */ struct urb *urbout; /* Output URB */ - struct hid_output_fifo out[HID_CONTROL_FIFO_SIZE]; /* Output pipe fifo */ + struct hid_output_fifo out[HID_OUTPUT_FIFO_SIZE]; /* Output pipe fifo */ unsigned char outhead, outtail; /* Output pipe fifo head & tail */ char *outbuf; /* Output buffer */ dma_addr_t outbuf_dma; /* Output buffer dma */ -- 2.55.0