]> git.baikalelectronics.ru Git - kernel.git/commit
HID: corsair: fix DMA buffers on stack
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 17:17:42 +0000 (18:17 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 13 Jan 2017 10:59:31 +0000 (11:59 +0100)
commitdaf82da0a4dc2423a4437c921f524257cf578f05
tree12d05f8a1a9e82b925ff84113054ade36052c3cf
parent76a2fd54b32a57c0feae03168252672478904e53
HID: corsair: fix DMA buffers on stack

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: c8b6c710f7ba ("HID: corsair: Add Corsair Vengeance K90 driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-corsair.c