diff options
author | Helge Deller <deller@gmx.de> | 2016-09-20 11:29:32 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2016-09-20 12:02:36 -0400 |
commit | 5baf919dd75817ba23423a8c9ef9be357fe2bb94 (patch) | |
tree | 26c61e7cf087adf15728deb00ca779c81eea00e2 /arch/parisc | |
parent | b5d5cf2b8a68618a8ec646cab5746e2f539dc244 (diff) |
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')
-rw-r--r-- | arch/parisc/kernel/smp.c | 4 |
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) | |||
412 | 412 | ||
413 | int __cpu_up(unsigned int cpu, struct task_struct *tidle) | 413 | int __cpu_up(unsigned int cpu, struct task_struct *tidle) |
414 | { | 414 | { |
415 | if (cpu != 0 && cpu < parisc_max_cpus) | 415 | if (cpu != 0 && cpu < parisc_max_cpus && smp_boot_one_cpu(cpu, tidle)) |
416 | smp_boot_one_cpu(cpu, tidle); | 416 | return -ENOSYS; |
417 | 417 | ||
418 | return cpu_online(cpu) ? 0 : -ENOSYS; | 418 | return cpu_online(cpu) ? 0 : -ENOSYS; |
419 | } | 419 | } |