aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2021-09-01 12:36:00 -0400
committerJiri Kosina <[email protected]>2021-09-01 20:52:31 +0200
commit0a824efdb724e07574bafcd2c2486b2a3de35ff6 (patch)
tree1b0db6fa8d983cb67b797336139cf8125e9f10b2 /tools/perf/scripts/python/export-to-sqlite.py
parent5049307d37a760e304ad191c5dc7c6851266d2f8 (diff)
HID: usbhid: Fix warning caused by 0-length input reports
Syzbot found a warning caused by hid_submit_ctrl() submitting a control request to transfer a 0-length input report: usb 1-1: BOGUS control dir, pipe 80000280 doesn't match bRequestType a1 (The warning message is a little difficult to understand. It means that the control request claims to be for an IN transfer but this contradicts the USB spec, which requires 0-length control transfers always to be in the OUT direction.) Now, a zero-length report isn't good for anything and there's no reason for a device to have one, but the fuzzer likes to pick out these weird edge cases. In the future, perhaps we will decide to reject 0-length reports at probe time. For now, the simplest approach for avoiding these warnings is to pretend that the report actually has length 1. Signed-off-by: Alan Stern <[email protected]> Reported-and-tested-by: [email protected] Tested-by: Oleksandr Natalenko <[email protected]> Tested-by: Benjamin Tissoires <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Cc: [email protected] Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions