From: Mariusz Kozlowski Date: Mon, 6 Aug 2007 21:05:35 +0000 (-0300) Subject: V4L/DVB (5982): Dev.c: memset fix X-Git-Tag: v2.6.24-rc1~1463^2~251 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=473c653fff8dc6a63cad279a8e83395ead12119d;p=linux-2.6 V4L/DVB (5982): Dev.c: memset fix Looks like memset() is zeroing wrong nr of bytes. Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index b876aca69c..0334b9aaf1 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c @@ -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;