Skip to contentSkip to conversation

fix acpi_parse_fadt()

PATCH New Jan Beulich 1 participant 1 message Oct 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix acpi_parse_fadt()

Prevent returning early, so that other information gathered in this function will not occasionally be missing for the consumer(s).

xen/arch/x86/acpi/boot.c +2 -4
Index: 2007-10-10/xen/arch/x86/acpi/boot.c
===================================================================
@@ -491,11 +491,9 @@ static int __init acpi_parse_fadt(unsign
 	/* detect the location of the ACPI PM Timer */
 	if (fadt->revision >= FADT2_REVISION_ID) {
 		/* FADT rev. 2 */
-		if (fadt->xpm_tmr_blk.address_space_id !=
+		if (fadt->xpm_tmr_blk.address_space_id ==
 		    ACPI_ADR_SPACE_SYSTEM_IO)
-			return 0;
-
-		pmtmr_ioport = fadt->xpm_tmr_blk.address;
+			pmtmr_ioport = fadt->xpm_tmr_blk.address;
 		/*
 		 * "X" fields are optional extensions to the original V1.0
 		 * fields, so we must selectively expand V1.0 fields if the