aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zoran_driver.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-06 17:05:27 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:04:38 -0400
commit5e76a1cb2ce0918ff2429fcfa2d5655dbd273c54 (patch)
tree1c995d8e77ba059a9acca847f531550d2449cd3e /drivers/media/video/zoran_driver.c
parent4f76b672c4f9ceb9e7e0aa6224293da0ae7430da (diff)
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>
Diffstat (limited to 'drivers/media/video/zoran_driver.c')
-rw-r--r--drivers/media/video/zoran_driver.c2
1 files changed, 1 insertions, 1 deletions
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,
3196 "%s: VIDIOC_QUERYBUF - index=%d, type=%d\n", 3196 "%s: VIDIOC_QUERYBUF - index=%d, type=%d\n",
3197 ZR_DEVNAME(zr), buf->index, buf->type); 3197 ZR_DEVNAME(zr), buf->index, buf->type);
3198 3198
3199 memset(buf, 0, sizeof(buf)); 3199 memset(buf, 0, sizeof(*buf));
3200 buf->type = type; 3200 buf->type = type;
3201 buf->index = index; 3201 buf->index = index;
3202 3202