aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/apic/io_apic.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 42cdc78427a2..d882c03604ee 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -4130,9 +4130,12 @@ static int __init ioapic_insert_resources(void)
4130 struct resource *r = ioapic_resources; 4130 struct resource *r = ioapic_resources;
4131 4131
4132 if (!r) { 4132 if (!r) {
4133 printk(KERN_ERR 4133 if (nr_ioapics > 0) {
4134 "IO APIC resources could be not be allocated.\n"); 4134 printk(KERN_ERR
4135 return -1; 4135 "IO APIC resources couldn't be allocated.\n");
4136 return -1;
4137 }
4138 return 0;
4136 } 4139 }
4137 4140
4138 for (i = 0; i < nr_ioapics; i++) { 4141 for (i = 0; i < nr_ioapics; i++) {