Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e76a1cb authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (5981): Zoran_driver.c: fix memset in ioctl



Looks like memset() is zeroing wrong nr of bytes.

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 4f76b672
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;