]> 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)
commit5d444acf22948d62801bbafc5ff1e7db8888737a
tree12d05f8a1a9e82b925ff84113054ade36052c3cf
parentc14a0635b61f35fc650d825dde5dc7f18a2772c9
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: c5255d16a47e ("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