summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irq_64.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 20:50:16 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:51 +0200
commit1d5f6b36c4736af1dac396d6267eb53dcc8c0021 (patch)
tree80b7fe11fa42cabd3af3fddeef53f0126943ec22 /arch/x86/kernel/irq_64.c
parent46926b67fc663d357a1a8174328998a9e49da0b8 (diff)
downloadblackbird-op-linux-1d5f6b36c4736af1dac396d6267eb53dcc8c0021.tar.gz
blackbird-op-linux-1d5f6b36c4736af1dac396d6267eb53dcc8c0021.zip
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 <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/irq_64.c')
-rw-r--r--arch/x86/kernel/irq_64.c5
1 files changed, 4 insertions, 1 deletions
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
OpenPOWER on IntegriCloud