]> git.baikalelectronics.ru Git - kernel.git/commit
HID: uhid: Over-ride the default maximum data buffer value with our own
authorLee Jones <lee@kernel.org>
Mon, 23 Jan 2023 12:39:12 +0000 (12:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:17 +0000 (08:50 +0100)
commit41a7d4b437303dc205a3a7e1c15f0fab19efa70c
treede31646c6b4ac5b9d5b50b133fb8d84795cf2c34
parent3518e95efaac118af32241e1f97f82d62a28f599
HID: uhid: Over-ride the default maximum data buffer value with our own

commit 8b5f15335b13da43694a70c7b430083ab8012bb8 upstream.

The default maximum data buffer size for this interface is UHID_DATA_MAX
(4k).  When data buffers are being processed, ensure this value is used
when ensuring the sanity, rather than a value between the user provided
value and HID_MAX_BUFFER_SIZE (16k).

Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/uhid.c