Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76f1d94f authored by Michael Ellerman's avatar Michael Ellerman Committed by Benjamin Herrenschmidt
Browse files

powerpc: Make virq_debug_show() cope with sparse irq_descs

parent 32c105c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1065,8 +1065,11 @@ static int virq_debug_show(struct seq_file *m, void *private)
	seq_printf(m, "%-5s  %-7s  %-15s  %s\n", "virq", "hwirq",
		      "chip name", "host name");

	for (i = 1; i < NR_IRQS; i++) {
	for (i = 1; i < nr_irqs; i++) {
		desc = irq_to_desc(i);
		if (!desc)
			continue;

		spin_lock_irqsave(&desc->lock, flags);

		if (desc->action && desc->action->handler) {