diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2009-08-01 03:48:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-05 04:30:50 -0400 |
commit | a7428cd2ef77734465e36bceb43290e37e2a97c6 (patch) | |
tree | 244b5b95fb559806307103a14c464a9f1d38386c /arch/x86/kernel/apic | |
parent | 2977fb3ffc8493a2f4f0a362e8660a6cde9f1bb9 (diff) |
x86, ioapic: Throw BUG instead of NULL dereference
Instead of plain NULL deref we better throw error
message with a backtrace. Actually we need more
gracious error handling here. Meanwhile leave it
as is.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: yinghai@kernel.org
LKML-Reference: <20090801075435.769301745@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic')
-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 | ||