Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04c93ce4 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Ingo Molnar
Browse files

x86: fix IO APIC resource allocation error message



Impact: fix incorrect error message

- IO APIC resource allocation error message contains one too many "be".

- Print the error message iff there are IO APICs in the system.

I've seen this error message for some time on my x86-32 laptop...

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Alan Bartlett <ajb.stxsl@googlemail.com>
LKML-Reference: <200903202100.30789.bzolnier@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7f00a249
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4130,10 +4130,13 @@ static int __init ioapic_insert_resources(void)
	struct resource *r = ioapic_resources;

	if (!r) {
		if (nr_ioapics > 0) {
			printk(KERN_ERR
		       "IO APIC resources could be not be allocated.\n");
				"IO APIC resources couldn't be allocated.\n");
			return -1;
		}
		return 0;
	}

	for (i = 0; i < nr_ioapics; i++) {
		insert_resource(&iomem_resource, r);