提交 666c73d9 编写于 作者: S Sascha Hauer 提交者: 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: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册