summaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/smp.c
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 /arch/parisc/kernel/smp.c
parentparisc: Drop BROKEN_RODATA config option (diff)
downloadlinux-5baf919dd75817ba23423a8c9ef9be357fe2bb94.tar.xz
linux-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>
Diffstat (limited to 'arch/parisc/kernel/smp.c')
-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;
}