Skip to content

Commit

Permalink
V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sascha Hauer authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent d7fbefe commit 666c73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 666c73d

Please sign in to comment.