diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2016-02-22 23:47:03 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-03 19:03:06 +0300 |
commit | d37410c27299fab8c7f17041f71ca5c2046d1f6f (patch) | |
tree | 53d0be863f7f70b5d3ff908e8cee8d3f8ae8c86e /drivers/media | |
parent | 0629e991a25a9b56a70f9f0c327aad8ae1471dbf (diff) | |
download | linux-d37410c27299fab8c7f17041f71ca5c2046d1f6f.tar.xz |
[media] media: Properly handle user pointers
Mark pointers containing user pointers as such.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/media-device.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |