Commit 5e053e77 authored by Lin Ming's avatar Lin Ming Committed by Len Brown

ACPICA: Check for non-zero address before being converted to GAS

Reported-by: FreeBSD community
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 531c633d
...@@ -618,12 +618,14 @@ static void acpi_tb_setup_fadt_registers(void) ...@@ -618,12 +618,14 @@ static void acpi_tb_setup_fadt_registers(void)
ACPI_ADD_PTR(struct acpi_generic_address, &acpi_gbl_FADT, ACPI_ADD_PTR(struct acpi_generic_address, &acpi_gbl_FADT,
fadt_pm_info_table[i].source); fadt_pm_info_table[i].source);
acpi_tb_init_generic_address(fadt_pm_info_table[i].target, if (source64->address) {
source64->space_id, acpi_tb_init_generic_address(fadt_pm_info_table[i].
target, source64->space_id,
pm1_register_byte_width, pm1_register_byte_width,
source64->address + source64->address +
(fadt_pm_info_table[i]. (fadt_pm_info_table[i].
register_num * register_num *
pm1_register_byte_width)); pm1_register_byte_width));
} }
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment