Skip to content

Commit

Permalink
powerpc: Make virq_debug_show() cope with sparse irq_descs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Ellerman <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
mpe authored and ozbenh committed Oct 30, 2009
1 parent 32c105c commit 76f1d94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 76f1d94

Please sign in to comment.