浏览代码

powerpc/spufs: correct kcalloc usage

kcalloc is supposed to be called with the count as its first argument and
the element size as the second.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Milton Miller 17 年之前
父节点
当前提交
9bcab8405c
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      arch/powerpc/platforms/cell/spufs/sputrace.c

+ 1 - 2
arch/powerpc/platforms/cell/spufs/sputrace.c

@@ -196,8 +196,7 @@ static int __init sputrace_init(void)
 	struct proc_dir_entry *entry;
 	int i, error = -ENOMEM;
 
-	sputrace_log = kcalloc(sizeof(struct sputrace),
-				bufsize, GFP_KERNEL);
+	sputrace_log = kcalloc(bufsize, sizeof(struct sputrace), GFP_KERNEL);
 	if (!sputrace_log)
 		goto out;