From: Mauro Carvalho Chehab Date: Sat, 20 Jan 2007 16:58:36 +0000 (-0300) Subject: V4L/DVB (5103): Fix vidioc_g_tuner handling X-Git-Tag: v2.6.21-rc2~66^2~115 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=243d8c0fd03c77051d0f6a634cbadb7bbe28a58a;p=linux-2.6 V4L/DVB (5103): Fix vidioc_g_tuner handling Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 8ba9942732..d388a42b5f 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c @@ -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;