V4L/DVB (5103): Fix vidioc_g_tuner handling
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 20 Jan 2007 16:58:36 +0000 (13:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:44 +0000 (13:34 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-video.c

index 8ba9942..d388a42 100644 (file)
@@ -1301,6 +1301,8 @@ static int vidioc_g_tuner (struct file *file, void *priv,
 
        if (unlikely(UNSET == core->tuner_type))
                return -EINVAL;
+       if (0 != t->index)
+               return -EINVAL;
 
        strcpy(t->name, "Television");
        t->type       = V4L2_TUNER_ANALOG_TV;