ACPICA: Fix for incorrect parameter passed to AcpiTbDeleteTable during table load.
authorBob Moore <robert.moore@intel.com>
Fri, 2 Feb 2007 16:48:24 +0000 (19:48 +0300)
committerLen Brown <len.brown@intel.com>
Sat, 3 Feb 2007 02:14:31 +0000 (21:14 -0500)
Bad pointer was passed in the case where the DSDT is overridden.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/tables/tbxface.c

index 84a8089..807978d 100644 (file)
@@ -524,7 +524,8 @@ static acpi_status acpi_tb_load_namespace(void)
                /*
                 * DSDT table has been found
                 */
-               acpi_tb_delete_table(ACPI_TABLE_INDEX_DSDT);
+               acpi_tb_delete_table(&acpi_gbl_root_table_list.
+                                    tables[ACPI_TABLE_INDEX_DSDT]);
                acpi_gbl_root_table_list.tables[ACPI_TABLE_INDEX_DSDT].pointer =
                    table;
                acpi_gbl_root_table_list.tables[ACPI_TABLE_INDEX_DSDT].length =