projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
473c653
)
V4L/DVB (5983): Arv.c: fix memset in ioctl
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Mon, 6 Aug 2007 21:05:45 +0000
(18:05 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:40 +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/arv.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/arv.c
b/drivers/media/video/arv.c
index
2666d3b
..
19e9929
100644
(file)
--- 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;