From: Akinobu Mita Date: Thu, 4 Oct 2007 21:55:59 +0000 (-0700) Subject: [SPARC64]: check fork_idle() error X-Git-Tag: v2.6.23~28^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1177bf9704a4e4e127b961950d75ca6c94fb419b;p=linux-2.6-omap-h63xx.git [SPARC64]: check fork_idle() error Check the return value of fork_idle() to catch error. Signed-off-by: Akinobu Mita Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index b84c49e3697..c73b7a48b03 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);