summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2007-10-04 14:55:59 -0700
committerDavid S. Miller <davem@davemloft.net>2007-10-04 14:55:59 -0700
commit1177bf9704a4e4e127b961950d75ca6c94fb419b (patch)
tree332d796ff127fa89ea9c3a4285da7cacd508e05c /arch/sparc64/kernel
parent27097ef9ff219c81a023911c7b0d5e7bc2419177 (diff)
downloadlinux-1177bf9704a4e4e127b961950d75ca6c94fb419b.tar.gz
linux-1177bf9704a4e4e127b961950d75ca6c94fb419b.tar.bz2
linux-1177bf9704a4e4e127b961950d75ca6c94fb419b.zip
[SPARC64]: check fork_idle() error
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>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r--arch/sparc64/kernel/smp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index b84c49e3697c..c73b7a48b036 100644
--- 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);