summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/videodev.c2
-rw-r--r--linux/drivers/media/video/vivi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c
index 60407ba08..9241cf5be 100644
--- a/linux/drivers/media/video/videodev.c
+++ b/linux/drivers/media/video/videodev.c
@@ -753,7 +753,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;
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++) {