summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/vivi.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-17 08:52:30 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-17 08:52:30 -0300
commit33f52debf9c5638b0eded7614e77b57430a0a3fb (patch)
tree5419c831043dfee9b7ea9b5f5bb04baf427ef8a3 /linux/drivers/media/video/vivi.c
parentf3557e8748785f4d92bcfad80becf953561bb2e7 (diff)
downloadmediapointer-dvb-s2-33f52debf9c5638b0eded7614e77b57430a0a3fb.tar.gz
mediapointer-dvb-s2-33f52debf9c5638b0eded7614e77b57430a0a3fb.tar.bz2
Fix: videodev.c were cleaning the pointer, not the values
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/vivi.c')
-rw-r--r--linux/drivers/media/video/vivi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/vivi.c b/linux/drivers/media/video/vivi.c
index fbd80cf2f..5fd42153f 100644
--- a/linux/drivers/media/video/vivi.c
+++ b/linux/drivers/media/video/vivi.c
@@ -1081,7 +1081,7 @@ static int vidiocgmbuf (struct file *file, void *priv, struct video_mbuf *mbuf)
ret = videobuf_reqbufs(q,&req);
if (ret < 0)
return (ret);
- memset(mbuf,0,sizeof(*mbuf));
+
mbuf->frames = req.count;
mbuf->size = 0;
for (i = 0; i < mbuf->frames; i++) {