Skip to content

Commit 2203870

Browse files
author
Marc Zyngier
committed
ARM: Handle no IPI being registered in show_ipi_list()
As SMP-on-UP is a valid configuration on 32bit ARM, do not assume that IPIs are populated in show_ipi_list(). Reported-by: Guillaume Tucker <guillaume.tucker@collabora.com> Reported-by: kernelci.org bot <bot@kernelci.org> Tested-by: Guillaume Tucker <guillaume.tucker@collabora.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent ac15a54 commit 2203870

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

arch/arm/kernel/smp.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,12 @@ void show_ipi_list(struct seq_file *p, int prec)
541541
unsigned int cpu, i;
542542

543543
for (i = 0; i < NR_IPI; i++) {
544-
unsigned int irq = irq_desc_get_irq(ipi_desc[i]);
544+
unsigned int irq;
545+
546+
if (!ipi_desc[i])
547+
continue;
548+
549+
irq = irq_desc_get_irq(ipi_desc[i]);
545550
seq_printf(p, "%*s%u: ", prec - 1, "IPI", i);
546551

547552
for_each_online_cpu(cpu)

0 commit comments

Comments
 (0)