parisc: Fix crash with nr_cpus=1 option
authorHelge Deller <deller@gmx.de>
Tue, 19 Sep 2023 13:26:35 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:00:44 +0000 (22:00 +0200)
commit485f0bac83a61878ab1214dc1957dc66956e1e88
tree8fd435abbf2e4219d9b72c519e5e484dedff6ccd
parentc9c110ce375422aba7d219ee29046134273ccbd5
parisc: Fix crash with nr_cpus=1 option

commit d3b3c637e4eb8d3bbe53e5692aee66add72f9851 upstream.

John David Anglin reported that giving "nr_cpus=1" on the command
line causes a crash, while "maxcpus=1" works.

Reported-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v5.18+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/smp.c