tracing/trivial: Use kcalloc instead of kzalloc to allocate array
[linux-2.6-block.git] / kernel / trace / ftrace.c
index e2e0597c0845b2dd763c79854461a2f20ae75457..d1499e910fe8ca67f266421da269d32f17a950b3 100644 (file)
@@ -1129,7 +1129,7 @@ static struct ftrace_hash *alloc_ftrace_hash(int size_bits)
                return NULL;
 
        size = 1 << size_bits;
-       hash->buckets = kzalloc(sizeof(*hash->buckets) * size, GFP_KERNEL);
+       hash->buckets = kcalloc(size, sizeof(*hash->buckets), GFP_KERNEL);
 
        if (!hash->buckets) {
                kfree(hash);