parisc: Fix crash with nr_cpus=1 option
authorHelge Deller <deller@gmx.de>
Tue, 19 Sep 2023 13:26:35 +0000 (15:26 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 7 Oct 2023 18:30:16 +0000 (20:30 +0200)
commitd3b3c637e4eb8d3bbe53e5692aee66add72f9851
treef3e10c8ecd01b63132097670cdfde69d92e57b2a
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70
parisc: Fix crash with nr_cpus=1 option

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+
arch/parisc/kernel/smp.c