V4L/DVB (4238): Make sure flags field is initialized when quering a control in pvrusb2
authorMike Isely <isely@pobox.com>
Sun, 25 Jun 2006 23:04:37 +0000 (20:04 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 27 Jun 2006 03:17:25 +0000 (00:17 -0300)
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c

index dda560cd1c06db756a1e14b0e4f4179cbb03be9b..da5d8fd9b09bab0299199bfc2f91a16ed8239405 100644 (file)
@@ -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: