From: Sakari Ailus Date: Mon, 22 Feb 2016 20:47:03 +0000 (-0300) Subject: [media] media: Properly handle user pointers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d37410c27299fab8c7f17041f71ca5c2046d1f6f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [media] media: Properly handle user pointers Mark pointers containing user pointers as such. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index c89dfef0c4c5..6ba6e8f982fc 100644 --- a/drivers/media/media-device.c +++ b/drivers/media/media-device.c @@ -252,10 +252,10 @@ static long __media_device_get_topology(struct media_device *mdev, struct media_interface *intf; struct media_pad *pad; struct media_link *link; - struct media_v2_entity kentity, *uentity; - struct media_v2_interface kintf, *uintf; - struct media_v2_pad kpad, *upad; - struct media_v2_link klink, *ulink; + struct media_v2_entity kentity, __user *uentity; + struct media_v2_interface kintf, __user *uintf; + struct media_v2_pad kpad, __user *upad; + struct media_v2_link klink, __user *ulink; unsigned int i; int ret = 0;