summarylogtreecommitdiffstats
path: root/HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
diff options
context:
space:
mode:
Diffstat (limited to 'HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch')
-rw-r--r--HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch b/HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
new file mode 100644
index 00000000000..f8a1c796431
--- /dev/null
+++ b/HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
@@ -0,0 +1,18 @@
+diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
+index 9993b692598f..860e21ec6a49 100644
+--- a/drivers/hid/hid-core.c
++++ b/drivers/hid/hid-core.c
+@@ -1301,10 +1301,10 @@ static u32 __extract(u8 *report, unsigned offset, int n)
+ u32 hid_field_extract(const struct hid_device *hid, u8 *report,
+ unsigned offset, unsigned n)
+ {
+- if (n > 32) {
+- hid_warn(hid, "hid_field_extract() called with n (%d) > 32! (%s)\n",
++ if (n > 256) {
++ hid_warn(hid, "hid_field_extract() called with n (%d) > 256! (%s)\n",
+ n, current->comm);
+- n = 32;
++ n = 256;
+ }
+
+ return __extract(report, offset, n);