- Subject: [PATCH] drivers/media/video/zoran_driver.c: fix memset in ioctl
- From: m.kozlowski at tuxland.pl (Mariusz Kozlowski)
- Date: Mon, 6 Aug 2007 22:13:59 +0200
Hello,
Looks like memset() is zeroing wrong nr of bytes.
Signed-off-by: Mariusz Kozlowski <m.kozlowski at tuxland.pl>
drivers/media/video/zoran_driver.c | 117098 -> 117099 (+1 bytes)
drivers/media/video/zoran_driver.o | 206096 -> 205952 (-144 bytes)
drivers/media/video/zoran_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.23-rc1-mm2-a/drivers/media/video/zoran_driver.c 2007-08-01 08:43:47.000000000 +0200
+++ linux-2.6.23-rc1-mm2-b/drivers/media/video/zoran_driver.c 2007-08-06 20:36:28.000000000 +0200
@@ -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;
[Linux Media]
[Older V4L]
[Linux DVB]
[Video Disk Recorder]
[Asterisk]
[Photo]
[DCCP]
[Netdev]
[Xorg]
[Util Linux NG]
[Xfree86]
[Free Photo Albums]
[Fedora Users]
[Fedora Women]
[ALSA Users]
[ALSA Devel]
[SSH]
[Linux USB]
 |
 |
-->