projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8725f25
)
powerpc/spufs: correct kcalloc usage
author
Milton Miller
<miltonm@bga.com>
Thu, 10 Jul 2008 23:03:09 +0000
(09:03 +1000)
committer
Jeremy Kerr
<jk@ozlabs.org>
Tue, 22 Jul 2008 23:37:16 +0000
(09:37 +1000)
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>
arch/powerpc/platforms/cell/spufs/sputrace.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/sputrace.c
b/arch/powerpc/platforms/cell/spufs/sputrace.c
index 8c0e95766a628503860ccb7b194132e29622e4f3..92d20e993ede097d5e732a2bf0b751f9931eb7d1 100644
(file)
--- 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;