treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / kernel / trace / ftrace.c
index df4b625..efed9c1 100644 (file)
@@ -728,7 +728,7 @@ static int ftrace_profile_init_cpu(int cpu)
         */
        size = FTRACE_PROFILE_HASH_SIZE;
 
-       stat->hash = kzalloc(sizeof(struct hlist_head) * size, GFP_KERNEL);
+       stat->hash = kcalloc(size, sizeof(struct hlist_head), GFP_KERNEL);
 
        if (!stat->hash)
                return -ENOMEM;