Commit d37410c2 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

[media] media: Properly handle user pointers

Mark pointers containing user pointers as such.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 0629e991
...@@ -252,10 +252,10 @@ static long __media_device_get_topology(struct media_device *mdev, ...@@ -252,10 +252,10 @@ static long __media_device_get_topology(struct media_device *mdev,
struct media_interface *intf; struct media_interface *intf;
struct media_pad *pad; struct media_pad *pad;
struct media_link *link; struct media_link *link;
struct media_v2_entity kentity, *uentity; struct media_v2_entity kentity, __user *uentity;
struct media_v2_interface kintf, *uintf; struct media_v2_interface kintf, __user *uintf;
struct media_v2_pad kpad, *upad; struct media_v2_pad kpad, __user *upad;
struct media_v2_link klink, *ulink; struct media_v2_link klink, __user *ulink;
unsigned int i; unsigned int i;
int ret = 0; int ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment