Staging: vt6655: add some range checks before memcpy()
commit0c849b3c16f4dab5848182868094adeb51210d8b
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Oct 2011 06:10:09 +0000 (20 09:10 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Oct 2011 08:13:20 +0000 (23 10:13 +0200)
treecdb75bf3e8d7971c5ad592be4c28d8d5f39a6329
parent0d3eb2b29f116a2be4e042cbab0e14c9957cc8e2
Staging: vt6655: add some range checks before memcpy()

There were no range checks in the original code so the user could
write past the end of the array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6655/ioctl.c