diff options
Diffstat (limited to 'arch/alpha/kernel/module.c')
-rw-r--r-- | arch/alpha/kernel/module.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/alpha/kernel/module.c b/arch/alpha/kernel/module.c index bd03dc94c72b..026ba9af6d6a 100644 --- a/arch/alpha/kernel/module.c +++ b/arch/alpha/kernel/module.c | |||
@@ -119,8 +119,7 @@ module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs, | |||
119 | } | 119 | } |
120 | 120 | ||
121 | nsyms = symtab->sh_size / sizeof(Elf64_Sym); | 121 | nsyms = symtab->sh_size / sizeof(Elf64_Sym); |
122 | chains = kmalloc(nsyms * sizeof(struct got_entry), GFP_KERNEL); | 122 | chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL); |
123 | memset(chains, 0, nsyms * sizeof(struct got_entry)); | ||
124 | 123 | ||
125 | got->sh_size = 0; | 124 | got->sh_size = 0; |
126 | got->sh_addralign = 8; | 125 | got->sh_addralign = 8; |