diff options
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 4db7d2df86b6..03479dfdebb8 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -448,7 +448,7 @@ void early_init_irq_lock_class(void) | |||
448 | unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) | 448 | unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) |
449 | { | 449 | { |
450 | struct irq_desc *desc = irq_to_desc(irq); | 450 | struct irq_desc *desc = irq_to_desc(irq); |
451 | return desc->kstat_irqs[cpu]; | 451 | return desc ? desc->kstat_irqs[cpu] : 0; |
452 | } | 452 | } |
453 | #endif | 453 | #endif |
454 | EXPORT_SYMBOL(kstat_irqs_cpu); | 454 | EXPORT_SYMBOL(kstat_irqs_cpu); |