Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b87576d59b5e8bd235e8579fd33b5d5af528b210
Commit:     b87576d59b5e8bd235e8579fd33b5d5af528b210
Parent:     df4365ce8829e84e8e6fe7d2371ea8f40630e865
Author:     Robert P. J. Day <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 12 20:07:35 2006 +0100
Committer:  Adrian Bunk <[EMAIL PROTECTED]>
CommitDate: Tue Dec 12 20:07:35 2006 +0100

    fs: Convert kmalloc() + memset() to kzalloc() in fs/.
    
    Convert the single available instance of kmalloc() + memset() to
    kzalloc() in the fs/ directory.
    
    Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]>
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
---
 fs/binfmt_elf_fdpic.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 76f06f6..6e6d456 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -706,12 +706,11 @@ static int elf_fdpic_map_file(struct elf_fdpic_params 
*params,
                return -ELIBBAD;
 
        size = sizeof(*loadmap) + nloads * sizeof(*seg);
-       loadmap = kmalloc(size, GFP_KERNEL);
+       loadmap = kzalloc(size, GFP_KERNEL);
        if (!loadmap)
                return -ENOMEM;
 
        params->loadmap = loadmap;
-       memset(loadmap, 0, size);
 
        loadmap->version = ELF32_FDPIC_LOADMAP_VERSION;
        loadmap->nsegs = nloads;
-
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