Skip to content

Commit

Permalink
V4L/DVB (5981): Zoran_driver.c: fix memset in ioctl
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 4f76b67 commit 5e76a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,7 @@ zoran_do_ioctl (struct inode *inode,
"%s: VIDIOC_QUERYBUF - index=%d, type=%d\n",
ZR_DEVNAME(zr), buf->index, buf->type);

memset(buf, 0, sizeof(buf));
memset(buf, 0, sizeof(*buf));
buf->type = type;
buf->index = index;

Expand Down

0 comments on commit 5e76a1c

Please sign in to comment.