]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (4112): Fix: videodev.c were cleaning the pointer, not the values
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 17 Jun 2006 11:52:30 +0000 (08:52 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:05:09 +0000 (02:05 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videodev.c
drivers/media/video/vivi.c

index 3f7a94b80c6324d988c6de52f6d883b811f4d062..311149b80e9f48b6fc2d0e11c4388930b5f3e2db 100644 (file)
@@ -734,7 +734,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
        {
                struct video_mbuf *p=arg;
 
-               memset(&p,0,sizeof(p));
+               memset(p,0,sizeof(p));
 
                if (!vfd->vidiocgmbuf)
                        break;
index 0aa54fb7727fbcaf0fc0ffeb01411fd303f20783..269c1b14cac5705d5d2fdc12e9c4a3530f114fec 100644 (file)
@@ -1000,7 +1000,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++) {