mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
4f1a3e5bc4
commit
077203a7d4
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue