mirror of https://gitee.com/openkylin/linux.git
V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c
Do not return -EINVAL for index=0 in VIDIOC_ENUMSTD, because it is a valid index Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
d7fbefe06d
commit
666c73d9e1
|
@ -836,7 +836,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
|
|||
break;
|
||||
}
|
||||
|
||||
if (index < 0 || index >= vfd->tvnormsize) {
|
||||
if (index<0 || index >= vfd->tvnormsize) {
|
||||
ret=-EINVAL;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue