Commit 4ceb04e1 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (4112): Fix: videodev.c were cleaning the pointer, not the values

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 35a303b1
......@@ -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;
......
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment