summarylogtreecommitdiffstats
path: root/HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
diff options
context:
space:
mode:
authorDaniel Holz2019-10-01 22:24:19 +0200
committerDaniel Holz2019-10-01 22:24:19 +0200
commit76b99688fc8908deb7884772ef8f6cadeb107bcd (patch)
tree333b6d69ec06b2ea7daa4c377f277b335a8351e2 /HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
parent468d767f2499d46ed9ea3894f6515d8014f7777f (diff)
downloadaur-linux-hynix.tar.gz
add HID-Increase-maximum-report-size-allowed-by-hid_field_extract
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);