Commit 4f15ee9
Benjamin Tissoires
HID: core: ensure the allocated report buffer can contain the reserved report ID
When the report ID is not used, the low level transport drivers expect
the first byte to be 0. However, currently the allocated buffer not
account for that extra byte, meaning that instead of having 8 guaranteed
bytes for implement to be working, we only have 7.
Reported-by: Alan Stern <[email protected]>
Closes: https://lore.kernel.org/linux-input/[email protected]/
Cc: [email protected]
Suggested-by: Alan Stern <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Benjamin Tissoires <[email protected]>1 parent 04515e0 commit 4f15ee9
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1886 | 1889 | | |
1887 | 1890 | | |
1888 | | - | |
| 1891 | + | |
1889 | 1892 | | |
1890 | 1893 | | |
1891 | 1894 | | |
| |||
0 commit comments