From: Mariusz Kozlowski Date: Mon, 6 Aug 2007 21:05:45 +0000 (-0300) Subject: V4L/DVB (5983): Arv.c: fix memset in ioctl X-Git-Tag: v2.6.24-rc1~1463^2~250 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8509a29ec6050a03d88f2da59fc2e361f6c16534;p=linux-2.6 V4L/DVB (5983): Arv.c: fix memset in ioctl 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/arv.c b/drivers/media/video/arv.c index 2666d3b766..19e9929ffa 100644 --- a/drivers/media/video/arv.c +++ b/drivers/media/video/arv.c @@ -441,7 +441,7 @@ static int ar_do_ioctl(struct inode *inode, struct file *file, { struct video_window *w = arg; DEBUG(1, "VIDIOCGWIN:\n"); - memset(w, 0, sizeof(w)); + memset(w, 0, sizeof(*w)); w->width = ar->width; w->height = ar->height; return 0;