Commit 9bcab840 authored by Milton Miller's avatar Milton Miller Committed by Jeremy Kerr

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: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 8725f25a
...@@ -196,8 +196,7 @@ static int __init sputrace_init(void) ...@@ -196,8 +196,7 @@ static int __init sputrace_init(void)
struct proc_dir_entry *entry; struct proc_dir_entry *entry;
int i, error = -ENOMEM; int i, error = -ENOMEM;
sputrace_log = kcalloc(sizeof(struct sputrace), sputrace_log = kcalloc(bufsize, sizeof(struct sputrace), GFP_KERNEL);
bufsize, GFP_KERNEL);
if (!sputrace_log) if (!sputrace_log)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment