Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8509a29ec6050a03d88f2da59fc2e361f6c16534
Commit:     8509a29ec6050a03d88f2da59fc2e361f6c16534
Parent:     473c653fff8dc6a63cad279a8e83395ead12119d
Author:     Mariusz Kozlowski <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 6 18:05:45 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:04:40 2007 -0300

    V4L/DVB (5983): Arv.c: fix memset in ioctl
    
    Looks like memset() is zeroing wrong nr of bytes.
    
    Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/arv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/arv.c b/drivers/media/video/arv.c
index 2666d3b..19e9929 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to