diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 20:04:37 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-27 00:17:25 -0300 |
commit | 077203a7d464f6ea7c94b4f3ea4b5bd246285fcd (patch) | |
tree | 632a2a3b98d087205a5cd8063b4444700ee99fdb /drivers/media/video/pvrusb2 | |
parent | 4f1a3e5bc4e541477729c2ab888c761342329920 (diff) |
V4L/DVB (4238): Make sure flags field is initialized when quering a control in pvrusb2
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index dda560cd1c0..da5d8fd9b09 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c @@ -525,6 +525,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, } strlcpy(vc->name,pvr2_ctrl_get_name(cptr),sizeof(vc->name)); + vc->flags = 0; vc->default_value = pvr2_ctrl_get_def(cptr); switch (pvr2_ctrl_get_type(cptr)) { case pvr2_ctl_enum: |