aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-06 17:05:45 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:04:40 -0400
commit8509a29ec6050a03d88f2da59fc2e361f6c16534 (patch)
tree12cf3ade83e6c210c87b709fbdc76834c9cd763f /drivers/media/video
parent473c653fff8dc6a63cad279a8e83395ead12119d (diff)
V4L/DVB (5983): Arv.c: fix memset in ioctl
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 'drivers/media/video')
-rw-r--r--drivers/media/video/arv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/arv.c b/drivers/media/video/arv.c
index 2666d3b76630..19e9929ffa0f 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,
441 { 441 {
442 struct video_window *w = arg; 442 struct video_window *w = arg;
443 DEBUG(1, "VIDIOCGWIN:\n"); 443 DEBUG(1, "VIDIOCGWIN:\n");
444 memset(w, 0, sizeof(w)); 444 memset(w, 0, sizeof(*w));
445 w->width = ar->width; 445 w->width = ar->width;
446 w->height = ar->height; 446 w->height = ar->height;
447 return 0; 447 return 0;