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)
commit6d104af38b570d37aa32a5803b04c354f8ed513d
tree12d05f8a1a9e82b925ff84113054ade36052c3cf
parenta89af4abdf9b353cdd6f61afc0eaaac403304873
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: 6f78193ee9ea ("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