OSDN Git Service

HID: corsair: fix DMA buffers on stack
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 17:17:42 +0000 (18:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:23:48 +0000 (08:23 +0100)
commit0f37d20fdc70ee54f002bd77ce54a2a303ad0437
treea3d020c58a2ad229258098d77c96c6169ad54d25
parent4740d1d7d429d362661d86b165b5c88175338ef5
HID: corsair: fix DMA buffers on stack

commit 6d104af38b570d37aa32a5803b04c354f8ed513d upstream.

Not all platforms support DMA to the stack, and specifically since v4.9
this is no longer supported on x86 with VMAP_STACK either.

Note that the macro-mode buffer was larger than necessary.

Fixes: 6f78193ee9ea ("HID: corsair: Add Corsair Vengeance K90 driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-corsair.c