From: Mike Isely Date: Sun, 25 Jun 2006 23:04:37 +0000 (-0300) Subject: V4L/DVB (4238): Make sure flags field is initialized when quering a control in pvrusb2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=077203a7d464f6ea7c94b4f3ea4b5bd246285fcd;p=linux-beck.git V4L/DVB (4238): Make sure flags field is initialized when quering a control in pvrusb2 Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index dda560cd1c06..da5d8fd9b09b 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: