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

We need to verify that we're not writing 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/vt6656/ioctl.c