]> 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)
commit8be7f82ca0200c01e585443f1d36e383f03dfe2f
tree65b6475906e13d78c8d28d180ce0c0c14a96b1ba
parent031f1c7baa40470808ed416fe4bd12e62df7c4dd
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