提交 077203a7 编写于 作者: M Mike Isely 提交者: Mauro Carvalho Chehab

V4L/DVB (4238): Make sure flags field is initialized when quering a control in pvrusb2

Signed-off-by: NMike Isely <isely@pobox.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 4f1a3e5b
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册