ANDROID: video: adf: Avoid directly referencing user pointers
authorJonathan Hamilton <jonathan.hamilton@imgtec.com>
Wed, 21 Sep 2016 19:40:51 +0000 (12:40 -0700)
committerGreg Hackmann <ghackmann@google.com>
Wed, 9 Nov 2016 00:30:37 +0000 (00:30 +0000)
commit2182c4daf185176ac99bf71a4ae1786ea9620714
tree9cf0b6817244842caf30184bbfcf4b870d20644d
parent96009ab737c4e6da44a0fff72d33534583454d03
ANDROID: video: adf: Avoid directly referencing user pointers

Enabling KASAN on a kernel using ADF causes a number of places where
user-supplied pointers to ioctls  pointers are directly dereferenced
without copy_from_user or access_ok.

Bug: 31806036

Signed-off-by: Jonathan Hamilton <jonathan.hamilton@imgtec.com>
Change-Id: I6e86237aaa6cec0f6e1c385336aefcc5332080ae
drivers/video/adf/adf_fops.c