Commit 666c73d9 authored by Sascha Hauer's avatar Sascha Hauer Committed by Mauro Carvalho Chehab

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: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent d7fbefe0
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment