]> 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, 20 Mar 2023 13:06:32 +0000 (13:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:28:10 +0000 (13:28 +0100)
commit92adf64d3ae643bd51a38a2bbc87a73bd8479528
tree2efc1ff69939f2e792b377d4d026d9ce8cef9244
parent78711769e45da3718053ab03cd9b53dd9da63dba
HID: uhid: Over-ride the default maximum data buffer value with our own

commit 1c5d4221240a233df2440fe75c881465cdf8da07 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: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/uhid.c