aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-25 19:04:37 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-26 23:17:25 -0400
commit077203a7d464f6ea7c94b4f3ea4b5bd246285fcd (patch)
tree632a2a3b98d087205a5cd8063b4444700ee99fdb /drivers/media/video
parent4f1a3e5bc4e541477729c2ab888c761342329920 (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')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-v4l2.c1
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 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,
525 } 525 }
526 526
527 strlcpy(vc->name,pvr2_ctrl_get_name(cptr),sizeof(vc->name)); 527 strlcpy(vc->name,pvr2_ctrl_get_name(cptr),sizeof(vc->name));
528 vc->flags = 0;
528 vc->default_value = pvr2_ctrl_get_def(cptr); 529 vc->default_value = pvr2_ctrl_get_def(cptr);
529 switch (pvr2_ctrl_get_type(cptr)) { 530 switch (pvr2_ctrl_get_type(cptr)) {
530 case pvr2_ctl_enum: 531 case pvr2_ctl_enum: