]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sur40 - fix DMA on stack
authorOliver Neukum <oneukum@suse.com>
Wed, 23 Mar 2016 21:36:56 +0000 (14:36 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 24 Mar 2016 00:29:30 +0000 (17:29 -0700)
commit06756e311a07092c894efe38ebce88e5ddd061ba
treec338d81a66ee7d0642238af6ffe89101221cc1a5
parent56adc719c0259a07200fc065d7bceaf47a3627aa
Input: sur40 - fix DMA on stack

During the initialisation the driver uses a buffer on the stack for DMA.
That violates the cache coherency rules. The fix is to allocate the buffer
with kmalloc().

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/sur40.c