]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/videodev.c
[PATCH] VIDIOC_ENUMSTD bug
[linux-2.6-omap-h63xx.git] / drivers / media / video / videodev.c
index 0fc90cd393f69f8331b19fd909271232ee0edf39..edd7b83c3464b4a2367c6391b30fcee2f9abcbe7 100644 (file)
@@ -760,7 +760,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
                ret=vfd->vidioc_overlay(file, fh, *i);
                break;
        }
-#ifdef CONFIG_V4L1_COMPAT
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
        /* --- streaming capture ------------------------------------- */
        case VIDIOCGMBUF:
        {
@@ -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;
                }