From: Sakari Ailus Date: Mon, 22 Feb 2016 20:47:03 +0000 (-0300) Subject: [media] media: Properly handle user pointers X-Git-Tag: v4.14-rc1~3648^2^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d37410c27299fab8c7f17041f71ca5c2046d1f6f;p=platform%2Fkernel%2Flinux-rpi.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 c89dfef..6ba6e8f 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;