mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
V4L/DVB (5981): Zoran_driver.c: fix memset in ioctl
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>
This commit is contained in:
parent
4f76b672c4
commit
5e76a1cb2c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user