summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/exfldio.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-07-28 00:42:38 +0200
committerLen Brown <len.brown@intel.com>2009-07-28 00:42:38 +0200
commit7cb7f45c7feef43c8f71f5cfedfc0b19be2142f7 (patch)
treec35f1815fefc6460c204473a738785d6da1cb642 /drivers/acpi/acpica/exfldio.c
parentLinux 2.6.31-rc4 (diff)
downloadlinux-7cb7f45c7feef43c8f71f5cfedfc0b19be2142f7.tar.xz
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