diff options
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index ffd8fdfcbe4c..2a145d3a8375 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -503,6 +503,10 @@ static void add_pin_to_irq_node(struct irq_cfg *cfg, int node, int apic, int pin | |||
503 | } | 503 | } |
504 | 504 | ||
505 | entry = get_one_free_irq_2_pin(node); | 505 | entry = get_one_free_irq_2_pin(node); |
506 | if (!entry) { | ||
507 | printk(KERN_ERR "can not alloc irq_pin_list\n"); | ||
508 | BUG_ON(1); | ||
509 | } | ||
506 | entry->apic = apic; | 510 | entry->apic = apic; |
507 | entry->pin = pin; | 511 | entry->pin = pin; |
508 | 512 | ||