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

Commit 035f994b authored by Bob Moore's avatar Bob Moore Committed by Len Brown
Browse files

ACPICA: Fix for incorrect parameter passed to AcpiTbDeleteTable during table load.



Bad pointer was passed in the case where the DSDT is overridden.

Signed-off-by: default avatarAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 6c9deb72
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 =