Input: cyttsp - fix memcpy size param
authorFerruh Yigit <fery@cypress.com>
Thu, 23 May 2013 16:56:55 +0000 (09:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2013 18:27:33 +0000 (11:27 -0700)
commit8c428c194065e000d4138123f147bc74f7532bbc
tree28cc19f2beaa37f23092216ef53d4bb424e91e97
parent322130dea90940d65b811bd67790aecf86e6340f
Input: cyttsp - fix memcpy size param

commit d2983cdb480157f637df07723f28aaa657b1080d upstream.

memcpy param is wrong because of offset in bl_cmd, this may corrupt the
stack which may cause a crash.

Tested-by: Ferruh Yigit <fery@cypress.com> on TMA300-DVK
Signed-off-by: Ferruh Yigit <fery@cypress.com>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/cyttsp_core.c