summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-07-11 14:15:06 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-31 00:12:27 +0200
commita1acb8f9a088193a66b4d176f5b9a7fb10356ae7 (patch)
treed5438d451d0c08fcdb31e10117f0819965c07012 /drivers/media/video/v4l2-ioctl.c
parent[media] v4l2-dev: forgot to add VIDIOC_DV_TIMINGS_CAP (diff)
downloadlinux-a1acb8f9a088193a66b4d176f5b9a7fb10356ae7.tar.xz
linux-a1acb8f9a088193a66b4d176f5b9a7fb10356ae7.zip
[media] v4l2-ioctl.c: zero the v4l2_dv_timings_cap struct
Zero all fields after the first type field. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: stable@kernel.org 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 68d89eadf1ca..3e4db2c1c3d6 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -1932,7 +1932,7 @@ static struct v4l2_ioctl_info v4l2_ioctls[] = {
IOCTL_INFO_FNC(VIDIOC_PREPARE_BUF, v4l_prepare_buf, v4l_print_buffer, INFO_FL_QUEUE),
IOCTL_INFO_STD(VIDIOC_ENUM_DV_TIMINGS, vidioc_enum_dv_timings, v4l_print_enum_dv_timings, 0),
IOCTL_INFO_STD(VIDIOC_QUERY_DV_TIMINGS, vidioc_query_dv_timings, v4l_print_dv_timings, 0),
- IOCTL_INFO_STD(VIDIOC_DV_TIMINGS_CAP, vidioc_dv_timings_cap, v4l_print_dv_timings_cap, 0),
+ IOCTL_INFO_STD(VIDIOC_DV_TIMINGS_CAP, vidioc_dv_timings_cap, v4l_print_dv_timings_cap, INFO_FL_CLEAR(v4l2_dv_timings_cap, type)),
};
#define V4L2_IOCTLS ARRAY_SIZE(v4l2_ioctls)