From: Yinghai Lu Date: Wed, 20 Aug 2008 03:50:16 +0000 (-0700) Subject: x86: check with without_new in show_interrupts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d5f6b36c4736af1dac396d6267eb53dcc8c0021;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git x86: check with without_new in show_interrupts so we don't get new one that we don't need it. Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c index f58b995b30ee..f337f87c1e16 100644 --- a/arch/x86/kernel/irq_64.c +++ b/arch/x86/kernel/irq_64.c @@ -83,7 +83,10 @@ int show_interrupts(struct seq_file *p, void *v) if (i < nr_irqs) { unsigned any_count = 0; - struct irq_desc *desc = irq_to_desc(i); + struct irq_desc *desc = __irq_to_desc(i); + + if (!desc) + return 0; spin_lock_irqsave(&desc->lock, flags); #ifndef CONFIG_SMP