summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-01-20 14:58:36 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-01-20 14:58:36 -0200
commit7f5cb3e99bfe404fbd5865a72522650b6d6c1cab (patch)
tree65d3a351522a33e0c89b096ace97b76c692953a4 /linux/drivers/media/video/cx88/cx88-video.c
parente3e5913c556520dce469afd75cf17f43479c2e27 (diff)
downloadmediapointer-dvb-s2-7f5cb3e99bfe404fbd5865a72522650b6d6c1cab.tar.gz
mediapointer-dvb-s2-7f5cb3e99bfe404fbd5865a72522650b6d6c1cab.tar.bz2
Fix vidioc_g_tuner handling
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/cx88/cx88-video.c | 2 ++ 1 file changed, 2 insertions(+)
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index 5f43b5174..f1e82a92a 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -1582,6 +1582,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;