diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-09-13 13:26:11 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 12:30:36 -0300 |
commit | 666c73d9e123b9ea230fcb1e2bf47fe0294332a8 (patch) | |
tree | 090fcf32ae58a33ca29e375f76c5c00f9e3da8ca /drivers/media/video | |
parent | d7fbefe06d2061de126095f903359ce1ef61faf3 (diff) | |
download | linux-stable-666c73d9e123b9ea230fcb1e2bf47fe0294332a8.tar.gz linux-stable-666c73d9e123b9ea230fcb1e2bf47fe0294332a8.tar.bz2 linux-stable-666c73d9e123b9ea230fcb1e2bf47fe0294332a8.zip |
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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/videodev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index 2299e294e8df..26e7ea252a0e 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c @@ -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; } |