]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:03:04 +0000 (22:03 +0200)
commit161fa3dfd5d756ab25483856cb3313be446844d5
tree93d052fb3d56a4d4cac30e08e8236151458a5196
parentc9969a3d310da58a4be577333bb1933b60af5ddb
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