Staging: vt6655-6: check keysize before memcpy()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Mar 2012 06:43:54 +0000 (09:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:17:34 +0000 (09:17 -0700)
commit4ca5218e3939685c2325fc0a0a1ac8150272c93f
treefb56eb7e2f5d12f91c31923294815eb7476eb414
parent401c90e56c48b1c642507a8bec91b7ae21f1156e
Staging: vt6655-6: check keysize before memcpy()

We need to check the we don't copy too much memory.  This comes from a
copy_from_user() in the ioctl.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/key.c
drivers/staging/vt6656/key.c