]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: vt6655: fix direct dereferencing of user pointer
authorGuillaume Clement <gclement@baobob.org>
Fri, 25 Jul 2014 12:47:23 +0000 (14:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:36:27 +0000 (16:36 -0700)
commit53cbe20d0291e0a0828f0d7e1686b95db8621ca7
tree65b6475906e13d78c8d28d180ce0c0c14a96b1ba
parent80dd7052089f0ee847ba3dc7c5ad471c0ed18089
staging: vt6655: fix direct dereferencing of user pointer

Sparse reported that the data from tagSCmdRequest is given by
userspace, so it should be tagged as such.

Later, we were memcomparing and dereferencing it without first copying
it, fix that as well.

Signed-off-by: Guillaume Clement <gclement@baobob.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/iocmd.h
drivers/staging/vt6655/iwctl.c
drivers/staging/vt6655/iwctl.h