alpha: convert IOMMU to use ALIGN()
[sfrench/cifs-2.6.git] / arch / alpha / kernel / module.c
index bd03dc94c72bfb458a5428c3eac584562bda50c3..026ba9af6d6ae3e70a9ea71f6af4c014620176c7 100644 (file)
@@ -119,8 +119,7 @@ module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
        }
 
        nsyms = symtab->sh_size / sizeof(Elf64_Sym);
-       chains = kmalloc(nsyms * sizeof(struct got_entry), GFP_KERNEL);
-       memset(chains, 0, nsyms * sizeof(struct got_entry));
+       chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL);
 
        got->sh_size = 0;
        got->sh_addralign = 8;