ACPICA: Check for non-zero address before being converted to GAS
Reported-by: FreeBSD community Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
531c633d2b
commit
5e053e77f2
1 changed files with 9 additions and 7 deletions
|
@ -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].
|
||||||
pm1_register_byte_width,
|
target, source64->space_id,
|
||||||
source64->address +
|
pm1_register_byte_width,
|
||||||
(fadt_pm_info_table[i].
|
source64->address +
|
||||||
register_num *
|
(fadt_pm_info_table[i].
|
||||||
pm1_register_byte_width));
|
register_num *
|
||||||
|
pm1_register_byte_width));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue