提交 5e76a1cb 编写于 作者: M Mariusz Kozlowski 提交者: Mauro Carvalho Chehab

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

Looks like memset() is zeroing wrong nr of bytes.
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 4f76b672
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册