summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2016-09-20 17:29:32 +0200
committerHelge Deller <deller@gmx.de>2016-09-20 18:02:36 +0200
commit5baf919dd75817ba23423a8c9ef9be357fe2bb94 (patch)
tree26c61e7cf087adf15728deb00ca779c81eea00e2
parentb5d5cf2b8a68618a8ec646cab5746e2f539dc244 (diff)
downloadlinux-stable-5baf919dd75817ba23423a8c9ef9be357fe2bb94.tar.gz
linux-stable-5baf919dd75817ba23423a8c9ef9be357fe2bb94.tar.bz2
linux-stable-5baf919dd75817ba23423a8c9ef9be357fe2bb94.zip
parisc: Check return value of smp_boot_one_cpu()
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>
-rw-r--r--arch/parisc/kernel/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index c2a9cc55a62f..75dab2871346 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;
}