]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 13 Sep 2006 16:26:11 +0000 (13:26 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 26 Sep 2006 15:30:36 +0000 (12:30 -0300)
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>
drivers/media/video/videodev.c

index 2299e294e8df342e441b9b8b3469b32e6d92dade..26e7ea252a0e5441ed7a6f43999336e89b1e5f91 100644 (file)
@@ -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;
                }