]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
irq: fix irqpoll && sparseirq
authorYinghai Lu <yhlu.kernel@gmail.com>
Mon, 15 Sep 2008 08:53:50 +0000 (01:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:10 +0000 (16:53 +0200)
commite00585bb7fc3d0b601181b765a254df7ff4ea59b
tree731d07071f04f54fbf4269912524455e54002858
parent56ffa1a028b9fce3860a247c6fe79fce7cbf425b
irq: fix irqpoll && sparseirq

Steven Noonan reported a boot hang when using irqpoll and
CONFIG_HAVE_SPARSE_IRQ=y.

The irqpoll loop needs to be updated to not iterate from 1 to nr_irqs
but to iterate via for_each_irq_desc(). (in the former case desc can
be NULL which crashes the box)

Reported-by: Steven Noonan <steven@uplinklabs.net>
Tested-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/spurious.c