summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Holz2019-10-01 22:24:19 +0200
committerDaniel Holz2019-10-01 22:24:19 +0200
commit76b99688fc8908deb7884772ef8f6cadeb107bcd (patch)
tree333b6d69ec06b2ea7daa4c377f277b335a8351e2
parent468d767f2499d46ed9ea3894f6515d8014f7777f (diff)
downloadaur-76b99688fc8908deb7884772ef8f6cadeb107bcd.tar.gz
add HID-Increase-maximum-report-size-allowed-by-hid_field_extract
-rw-r--r--.SRCINFO1
-rw-r--r--HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch18
-rw-r--r--PKGBUILD4
3 files changed, 22 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b8001ee716a..090bafe722b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -22,6 +22,7 @@ pkgbase = linux-hynix
source = linux.preset
source = v2-1-2-pci-prevent-sk-hynix-nvme-from-entering-D3.patch
source = v2-2-2-nvme-add-quirk-to-not-call-disable-function-when-suspending.patch
+ source = HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
validpgpkeys = 8218F88849AAC522E94CF470A5E9288C4FA415FA
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);
diff --git a/PKGBUILD b/PKGBUILD
index 48083f6783d..0e006e55c07 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,6 +27,7 @@ source=(
linux.preset # standard config files for mkinitcpio ramdisk
v2-1-2-pci-prevent-sk-hynix-nvme-from-entering-D3.patch
v2-2-2-nvme-add-quirk-to-not-call-disable-function-when-suspending.patch
+ HID-Increase-maximum-report-size-allowed-by-hid_field_extract.patch
)
validpgpkeys=(
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
@@ -39,7 +40,8 @@ sha256sums=('SKIP'
'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636'
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65'
'dbc9d913a2d41c7809b99cf86ad63d3f4eb2e4d10ab3f6564203e4a21803b98f'
- '13d0a2f48ae12f8663b7de23eda5bfbce56641bdd4cf16b1b21678ea14db7fd3')
+ '13d0a2f48ae12f8663b7de23eda5bfbce56641bdd4cf16b1b21678ea14db7fd3'
+ '0e965b2554c6467fd3610967f7df0484d8a9db851d9f16b95a3c4b4448411507')
_kernelname=${pkgbase#linux}
: ${_kernelname:=-ARCH}