]> git.baikalelectronics.ru Git - 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)
commit2718f5856058827365bb69b6c66b867bf0dcd7d8
tree65b6475906e13d78c8d28d180ce0c0c14a96b1ba
parent8370e2e40ac7905bd3bb878552ba68e379bb0866
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