]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5982): Dev.c: memset fix
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Mon, 6 Aug 2007 21:05:35 +0000 (18:05 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:39 +0000 (22:04 -0300)
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>
drivers/media/video/videodev.c

index b876aca69c73673fadb42f5e9388488d030c3eb4..0334b9aaf12ad63dc8200e03adb9f61fa7c7f1dd 100644 (file)
@@ -448,7 +448,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
        if (cmd == VIDIOCGMBUF) {
                struct video_mbuf *p=arg;
 
-               memset(p,0,sizeof(p));
+               memset(p, 0, sizeof(*p));
 
                if (!vfd->vidiocgmbuf)
                        return ret;