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)
commitd314e9e80c5ea561b73584b73806c2ae9e30f503
treec338d81a66ee7d0642238af6ffe89101221cc1a5
parent950336ba3e4a1ffd2ca60d29f6ef386dd2c7351d
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