Input: appletouch - fix DMA to/from stack buffer
authorBob Copeland <me@bobcopeland.com>
Tue, 28 Apr 2009 14:49:53 +0000 (07:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 Apr 2009 16:34:13 +0000 (09:34 -0700)
commit0385c5ee3ca96bfe244610bf459abf66682ff202
tree501c065abff9f3c262152de507cfc76a8e07258e
parent384318ecd2eb4fdbcbe7c4df6e8bb55986bf52d4
Input: appletouch - fix DMA to/from stack buffer

CONFIG_DMA_API_DEBUG spotted an instance of appletouch using
an array on the stack as a DMA buffer for certain hardware.
Change it to use a kmalloc()ed buffer instead.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/appletouch.c