Skip to content

Commit

Permalink
V4L/DVB (4112): Fix: videodev.c were cleaning the pointer, not the va…
Browse files Browse the repository at this point in the history
…lues

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 25, 2006
1 parent 35a303b commit 4ceb04e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 4ceb04e

Please sign in to comment.