aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/videodev.c2
-rw-r--r--drivers/media/video/vivi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 3f7a94b80c63..311149b80e9f 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -734,7 +734,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
734 { 734 {
735 struct video_mbuf *p=arg; 735 struct video_mbuf *p=arg;
736 736
737 memset(&p,0,sizeof(p)); 737 memset(p,0,sizeof(p));
738 738
739 if (!vfd->vidiocgmbuf) 739 if (!vfd->vidiocgmbuf)
740 break; 740 break;
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index 0aa54fb7727f..269c1b14cac5 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -1000,7 +1000,7 @@ static int vidiocgmbuf (struct file *file, void *priv, struct video_mbuf *mbuf)
1000 ret = videobuf_reqbufs(q,&req); 1000 ret = videobuf_reqbufs(q,&req);
1001 if (ret < 0) 1001 if (ret < 0)
1002 return (ret); 1002 return (ret);
1003 memset(mbuf,0,sizeof(*mbuf)); 1003
1004 mbuf->frames = req.count; 1004 mbuf->frames = req.count;
1005 mbuf->size = 0; 1005 mbuf->size = 0;
1006 for (i = 0; i < mbuf->frames; i++) { 1006 for (i = 0; i < mbuf->frames; i++) {