summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/zoran_driver.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-08-06 18:05:27 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-08-06 18:05:27 -0300
commit315ead7457e2fa04aaabfb5b1fda36a5a725c461 (patch)
tree94d41b468aa1d611e1f2f2108d9f073e9ea8c8a6 /linux/drivers/media/video/zoran_driver.c
parent8e502d79187fdc2f52929f2bdcf9a588e039b669 (diff)
downloadmediapointer-dvb-s2-315ead7457e2fa04aaabfb5b1fda36a5a725c461.tar.gz
mediapointer-dvb-s2-315ead7457e2fa04aaabfb5b1fda36a5a725c461.tar.bz2
Zoran_driver.c: fix memset in ioctl
From: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Hello, 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 'linux/drivers/media/video/zoran_driver.c')
-rw-r--r--linux/drivers/media/video/zoran_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/zoran_driver.c b/linux/drivers/media/video/zoran_driver.c
index 6e598a3c5..063b21ffd 100644
--- a/linux/drivers/media/video/zoran_driver.c
+++ b/linux/drivers/media/video/zoran_driver.c
@@ -3263,7 +3263,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;