projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tracing/trivial: Use kcalloc instead of kzalloc to allocate array
[linux-2.6-block.git]
/
kernel
/
trace
/
ftrace.c
diff --git
a/kernel/trace/ftrace.c
b/kernel/trace/ftrace.c
index e2e0597c0845b2dd763c79854461a2f20ae75457..d1499e910fe8ca67f266421da269d32f17a950b3 100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-1129,7
+1129,7
@@
static struct ftrace_hash *alloc_ftrace_hash(int size_bits)
return NULL;
size = 1 << size_bits;
- hash->buckets = k
zalloc(sizeof(*hash->buckets) * size
, GFP_KERNEL);
+ hash->buckets = k
calloc(size, sizeof(*hash->buckets)
, GFP_KERNEL);
if (!hash->buckets) {
kfree(hash);