Message ID | YjOFyeR0OJfFsYjF@czspare1-lap.sysgo.cz |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c index 9fec3df6c3ba..67b7df1c0520 100644 --- a/drivers/acpi/acpica/tbxfroot.c +++ b/drivers/acpi/acpica/tbxfroot.c @@ -138,8 +138,11 @@ acpi_find_root_pointer(acpi_physical_address *table_address) acpi_os_unmap_memory(table_ptr, ACPI_EBDA_PTR_LENGTH); /* EBDA present? */ - - if (physical_address > 0x400) { + /* Check that the EBDA pointer from 0x40e is sane and does not point + * above valid low memory + */ + if (physical_address > 0x400 && + physical_address < 0xA0000) { /* * 1b) Search EBDA paragraphs (EBDA is required to be a * minimum of 1K length)