All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] parisc: Check return value of smp_boot_one_cpu()
@ 2016-09-20 15:29 Helge Deller
  0 siblings, 0 replies; only message in thread
From: Helge Deller @ 2016-09-20 15:29 UTC (permalink / raw)
  To: linux-parisc, James Bottomley, John David Anglin

Check return value of smp_boot_one_cpu() whether CPU could be brought up.

Reported-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index c2a9cc5..75dab28 100644
--- a/arch/parisc/kernel/smp.c
+++ b/arch/parisc/kernel/smp.c
@@ -412,8 +412,8 @@ void smp_cpus_done(unsigned int cpu_max)
 
 int __cpu_up(unsigned int cpu, struct task_struct *tidle)
 {
-	if (cpu != 0 && cpu < parisc_max_cpus)
-		smp_boot_one_cpu(cpu, tidle);
+	if (cpu != 0 && cpu < parisc_max_cpus && smp_boot_one_cpu(cpu, tidle))
+		return -ENOSYS;
 
 	return cpu_online(cpu) ? 0 : -ENOSYS;
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-20 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 15:29 [PATCH] parisc: Check return value of smp_boot_one_cpu() Helge Deller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.