Commit 1c5d4221 authored by Lee Jones's avatar Lee Jones Committed by Jiri Kosina

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

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>
parent b1a37ed0
...@@ -395,6 +395,7 @@ static const struct hid_ll_driver uhid_hid_driver = { ...@@ -395,6 +395,7 @@ static const struct hid_ll_driver uhid_hid_driver = {
.parse = uhid_hid_parse, .parse = uhid_hid_parse,
.raw_request = uhid_hid_raw_request, .raw_request = uhid_hid_raw_request,
.output_report = uhid_hid_output_report, .output_report = uhid_hid_output_report,
.max_buffer_size = UHID_DATA_MAX,
}; };
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
......
Markdown is supported
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