projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27097ef
)
[SPARC64]: check fork_idle() error
author
Akinobu Mita
<akinobu.mita@gmail.com>
Thu, 4 Oct 2007 21:55:59 +0000
(14:55 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 4 Oct 2007 21:55:59 +0000
(14:55 -0700)
Check the return value of fork_idle() to catch error.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/smp.c
b/arch/sparc64/kernel/smp.c
index
b84c49e
..
c73b7a4
100644
(file)
--- a/
arch/sparc64/kernel/smp.c
+++ b/
arch/sparc64/kernel/smp.c
@@
-353,6
+353,8
@@
static int __devinit smp_boot_one_cpu(unsigned int cpu)
int timeout, ret;
p = fork_idle(cpu);
+ if (IS_ERR(p))
+ return PTR_ERR(p);
callin_flag = 0;
cpu_new_thread = task_thread_info(p);