aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-04-06 07:12:21 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:57:06 -0400
commit1d94aa369da073acff26fa98ad6b2168cb028ab1 (patch)
treec5b097743f3c9292fe39a8d1d4321e8337bbc312 /drivers/media/video/v4l2-ioctl.c
parentea64f8c2204cd8b9a95072c7ef85cc9a120a2693 (diff)
V4L/DVB: video_ioctl2: do not replace arg with NULL for _IO() ioctls
If the ioctl was defined without direction (e.g. _IO('o', 25)), then the arg as passed to vidioc_default was NULL instead of the original argument. Several ioctls in e.g. include/linux/dvb/video.h and audio.h use this type of ioctl to pass simple numerical values to the driver. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
-rw-r--r--drivers/media/video/v4l2-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index 7d59c107f13b..d6975f9c3722 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -2006,7 +2006,7 @@ long video_ioctl2(struct file *file,
2006{ 2006{
2007 char sbuf[128]; 2007 char sbuf[128];
2008 void *mbuf = NULL; 2008 void *mbuf = NULL;
2009 void *parg = NULL; 2009 void *parg = (void *)arg;
2010 long err = -EINVAL; 2010 long err = -EINVAL;
2011 int is_ext_ctrl; 2011 int is_ext_ctrl;
2012 size_t ctrls_size = 0; 2012 size_t ctrls_size = 0;