Skip to contentSkip to conversation

i386: CONFIG_ACPI_SRAT on non-acpi hw

PATCH New Magnus Damm 1 participant 1 message Sep 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: CONFIG_ACPI_SRAT on non-acpi hw

This patch for 2.6.14-rc1 adds code to check the return value of acpi_find_root_pointer(). Without this patch systems without ACPI support such as QEMU crashes when booting a NUMA kernel with CONFIG_ACPI_SRAT=y.

----

arch/i386/kernel/srat.c +6 -1
@@ -327,7 +327,12 @@ int __init get_memcfg_from_srat(void)
 	int tables = 0;
 	int i = 0;
 
-	acpi_find_root_pointer(ACPI_PHYSICAL_ADDRESSING, rsdp_address);
+	if (ACPI_FAILURE(acpi_find_root_pointer(ACPI_PHYSICAL_ADDRESSING, 
+						rsdp_address))) {
+		printk("%s: System description tables not found\n",
+		       __FUNCTION__);
+		goto out_err;
+	}
 
 	if (rsdp_address->pointer_type == ACPI_PHYSICAL_POINTER) {
 		printk("%s: assigning address to rsdp\n", __FUNCTION__);