Skip to content

Commit

Permalink
V4L/DVB (5982): Dev.c: memset fix
Browse files Browse the repository at this point in the history
Looks like memset() is zeroing wrong nr of bytes.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mariusz Kozlowski authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 5e76a1c commit 473c653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
if (cmd == VIDIOCGMBUF) {
struct video_mbuf *p=arg;

memset(p,0,sizeof(p));
memset(p, 0, sizeof(*p));

if (!vfd->vidiocgmbuf)
return ret;
Expand Down

0 comments on commit 473c653

Please sign in to comment.