diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-19 08:14:17 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-19 08:14:17 +0100 |
commit | 8c0898eba0b293726f0d339021c14fcbcb7157af (patch) | |
tree | 82ed44765704282557d3021797d90e0c32a8b527 | |
parent | a0756735c380eaa2d3f6e26366044f89575610d0 (diff) | |
download | mediapointer-dvb-s2-8c0898eba0b293726f0d339021c14fcbcb7157af.tar.gz mediapointer-dvb-s2-8c0898eba0b293726f0d339021c14fcbcb7157af.tar.bz2 |
av7110: test type field in VIDIOC_G_SLICED_VBI_CAP
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_v4l.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_v4l.c b/linux/drivers/media/dvb/ttpci/av7110_v4l.c index 04334058f..2210cff73 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/linux/drivers/media/dvb/ttpci/av7110_v4l.c @@ -519,7 +519,8 @@ static int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct av7110 *av7110 = (struct av7110 *)dev->ext_priv; dprintk(2, "VIDIOC_G_SLICED_VBI_CAP\n"); - memset(cap, 0, sizeof(*cap)); + if (cap->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) + return -EINVAL; if (FW_VERSION(av7110->arm_app) >= 0x2623) { cap->service_set = V4L2_SLICED_WSS_625; cap->service_lines[0][23] = V4L2_SLICED_WSS_625; |