diff options
author | Milton Miller <miltonm@bga.com> | 2008-07-11 09:03:09 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-07-23 09:37:16 +1000 |
commit | 9bcab8405c98c34849c5795c717b7e6a3e2d3875 (patch) | |
tree | c45692eb04a6b29b9c171af605bbe5036d770c8e | |
parent | 8725f25acc656c1522d48a6746055099efdaca4c (diff) | |
download | blackbird-op-linux-9bcab8405c98c34849c5795c717b7e6a3e2d3875.tar.gz blackbird-op-linux-9bcab8405c98c34849c5795c717b7e6a3e2d3875.zip |
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>
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/sputrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sputrace.c b/arch/powerpc/platforms/cell/spufs/sputrace.c index 8c0e95766a62..92d20e993ede 100644 --- a/arch/powerpc/platforms/cell/spufs/sputrace.c +++ b/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; |