summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-09-13 13:26:11 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-13 13:26:11 -0300
commitf2f8bd9771df8eb2f5b1cc0774014eeb3e231609 (patch)
treeb8760379c7c17b04dc4180475ea19d22b5ef627b /linux/drivers/media/video/videodev.c
parentbed385df30ae7d5ad768d8c3913de26b62d97930 (diff)
downloadmediapointer-dvb-s2-f2f8bd9771df8eb2f5b1cc0774014eeb3e231609.tar.gz
mediapointer-dvb-s2-f2f8bd9771df8eb2f5b1cc0774014eeb3e231609.tar.bz2
Fix VIDIOC_ENUMSTD ioctl in videodev.c
From: Sascha Hauer <s.hauer@pengutronix.de> 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 'linux/drivers/media/video/videodev.c')
-rw-r--r--linux/drivers/media/video/videodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c
index 4b5a044db..3297057bb 100644
--- a/linux/drivers/media/video/videodev.c
+++ b/linux/drivers/media/video/videodev.c
@@ -855,7 +855,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;
}