]> git.karo-electronics.de Git - linux-beck.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:38 +0000 (08:24 +0100)
commit63df1ccb937f67fbefa0a77415b3a4d10434a09b
tree29a920f094d9b61dd9d805d15c750d81831c4c19
parent4922a6a5cfa7ff25622f07860d840e6b9c49f6a1
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