[PATCH 11/59] CRED: Wrap task credential accesses in video input drivers

David Howells
2008-08-27T14:09:37Z

Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: video4linux-list@redhat.com
---

drivers/media/video/cpia.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c
index f5f6944..844b445 100644
--- a/drivers/media/video/cpia.c
+++ b/drivers/media/video/cpia.c
@@ -3198,7 +3198,7 @@ static int cpia_open(struct inode *inode, struct file *file)

/* Set ownership of /proc/cpia/videoX to current user */
if(cam->proc_entry)
- cam->proc_entry->uid = current->uid;
+ cam->proc_entry->uid = current_uid();

/* set mark for loading first frame uncompressed */
cam->first_frame = 1;