summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/exfldio.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-07-27 18:42:38 -0400
committerLen Brown <len.brown@intel.com>2009-07-27 18:42:38 -0400
commit7cb7f45c7feef43c8f71f5cfedfc0b19be2142f7 (patch)
treec35f1815fefc6460c204473a738785d6da1cb642 /drivers/acpi/acpica/exfldio.c
parent4be3bd7849165e7efa6b0b35a23d6a3598d97465 (diff)
downloadblackbird-op-linux-7cb7f45c7feef43c8f71f5cfedfc0b19be2142f7.tar.gz
blackbird-op-linux-7cb7f45c7feef43c8f71f5cfedfc0b19be2142f7.zip
Revert "ACPICA: Remove obsolete acpi_os_validate_address interface"
This reverts commit f9ca058430333c9a24c5ca926aa445125f88df18. which caused a regression: http://bugzilla.kernel.org/show_bug.cgi?id=13620 Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/exfldio.c')
-rw-r--r--drivers/acpi/acpica/exfldio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/exfldio.c b/drivers/acpi/acpica/exfldio.c
index d4075b821021..6687be167f5f 100644
--- a/drivers/acpi/acpica/exfldio.c
+++ b/drivers/acpi/acpica/exfldio.c
@@ -113,6 +113,12 @@ acpi_ex_setup_region(union acpi_operand_object *obj_desc,
}
}
+ /* Exit if Address/Length have been disallowed by the host OS */
+
+ if (rgn_desc->common.flags & AOPOBJ_INVALID) {
+ return_ACPI_STATUS(AE_AML_ILLEGAL_ADDRESS);
+ }
+
/*
* Exit now for SMBus address space, it has a non-linear address space
* and the request cannot be directly validated
OpenPOWER on IntegriCloud