V4L/DVB (5981): Zoran_driver.c: fix memset in ioctl
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Mon, 6 Aug 2007 21:05:27 +0000 (18:05 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:38 +0000 (22:04 -0300)
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>
drivers/media/video/zoran_driver.c

index 4dbe2d449b509dfafa3a38fe3e99dbdafc7647bf..d831ca16d9e998eb464db06992a955cbc8fd6578 100644 (file)
@@ -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;
 
This page took 0.027989 seconds and 5 git commands to generate.