diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2006-12-12 14:07:35 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-12-12 14:07:35 -0500 |
commit | b87576d59b5e8bd235e8579fd33b5d5af528b210 (patch) | |
tree | b6074c27635d7cfe82fb3290f25517ec6a522c68 /fs/binfmt_elf_fdpic.c | |
parent | df4365ce8829e84e8e6fe7d2371ea8f40630e865 (diff) |
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 <rpjday@mindspring.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
-rw-r--r-- | 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 76f06f6bc2f6..6e6d4568d548 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, | |||
706 | return -ELIBBAD; | 706 | return -ELIBBAD; |
707 | 707 | ||
708 | size = sizeof(*loadmap) + nloads * sizeof(*seg); | 708 | size = sizeof(*loadmap) + nloads * sizeof(*seg); |
709 | loadmap = kmalloc(size, GFP_KERNEL); | 709 | loadmap = kzalloc(size, GFP_KERNEL); |
710 | if (!loadmap) | 710 | if (!loadmap) |
711 | return -ENOMEM; | 711 | return -ENOMEM; |
712 | 712 | ||
713 | params->loadmap = loadmap; | 713 | params->loadmap = loadmap; |
714 | memset(loadmap, 0, size); | ||
715 | 714 | ||
716 | loadmap->version = ELF32_FDPIC_LOADMAP_VERSION; | 715 | loadmap->version = ELF32_FDPIC_LOADMAP_VERSION; |
717 | loadmap->nsegs = nloads; | 716 | loadmap->nsegs = nloads; |