Check the return value of fork_idle() to catch error.
Cc: "David S. Miller" <[EMAIL PROTECTED]>
Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]>
---
arch/sparc64/kernel/smp.c | 2 ++
1 file changed, 2 insertions(+)
Index: 2.6-git/arch/sparc64/kernel/smp.c
===================================================================
--- 2.6-git.orig/arch/sparc64/kernel/smp.c
+++ 2.6-git/arch/sparc64/kernel/smp.c
@@ -353,6 +353,8 @@ static int __devinit smp_boot_one_cpu(un
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);
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html