Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;