From: Mariusz Kozlowski Date: Mon, 6 Aug 2007 21:05:27 +0000 (-0300) Subject: V4L/DVB (5981): Zoran_driver.c: fix memset in ioctl X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5e76a1cb2ce0918ff2429fcfa2d5655dbd273c54;p=linux-beck.git V4L/DVB (5981): Zoran_driver.c: fix memset in ioctl Looks like memset() is zeroing wrong nr of bytes. Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index 4dbe2d449b50..d831ca16d9e9 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c @@ -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;