Skip to content
Commit 4cd8ffa4 authored by Lee Jones's avatar Lee Jones Committed by Greg Kroah-Hartman
Browse files

HID: uhid: Over-ride the default maximum data buffer value with our own



commit 1c5d4221 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: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5a144cfe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment