projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git]
/
arch
/
x86
/
kernel
/
cpu
/
mtrr
/
if.c
diff --git
a/arch/x86/kernel/cpu/mtrr/if.c
b/arch/x86/kernel/cpu/mtrr/if.c
index
c610f47
..
4021d38
100644
(file)
--- a/
arch/x86/kernel/cpu/mtrr/if.c
+++ b/
arch/x86/kernel/cpu/mtrr/if.c
@@
-43,7
+43,7
@@
mtrr_file_add(unsigned long base, unsigned long size,
max = num_var_ranges;
if (fcount == NULL) {
- fcount = k
zalloc(max * sizeof *fcount
, GFP_KERNEL);
+ fcount = k
calloc(max, sizeof(*fcount)
, GFP_KERNEL);
if (!fcount)
return -ENOMEM;
FILE_FCOUNT(file) = fcount;