summaryrefslogtreecommitdiffstats
path: root/source/components/namespace/nseval.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-04-04 21:18:57 +0000
committerjkim <jkim@FreeBSD.org>2013-04-04 21:18:57 +0000
commit4b5fbe0ac6228523722afb80af9d5c8ed2ba5ee8 (patch)
tree2d060ed4fedfc9aace2e673176570faa8ae1d376 /source/components/namespace/nseval.c
parentbd5edd68a8fda8df18c688919e100f7f1df5ad6b (diff)
downloadFreeBSD-src-4b5fbe0ac6228523722afb80af9d5c8ed2ba5ee8.zip
FreeBSD-src-4b5fbe0ac6228523722afb80af9d5c8ed2ba5ee8.tar.gz
Import ACPICA 20130328.
Diffstat (limited to 'source/components/namespace/nseval.c')
-rw-r--r--source/components/namespace/nseval.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/source/components/namespace/nseval.c b/source/components/namespace/nseval.c
index cdd6a9f..1de341c 100644
--- a/source/components/namespace/nseval.c
+++ b/source/components/namespace/nseval.c
@@ -109,18 +109,22 @@ AcpiNsEvaluate (
Info->ReturnObject = NULL;
Info->ParamCount = 0;
- /*
- * Get the actual namespace node for the target object. Handles these cases:
- *
- * 1) Null node, Pathname (absolute path)
- * 2) Node, Pathname (path relative to Node)
- * 3) Node, Null Pathname
- */
- Status = AcpiNsGetNode (Info->PrefixNode, Info->Pathname,
- ACPI_NS_NO_UPSEARCH, &Info->ResolvedNode);
- if (ACPI_FAILURE (Status))
+ if (!Info->ResolvedNode)
{
- return_ACPI_STATUS (Status);
+ /*
+ * Get the actual namespace node for the target object if we need to.
+ * Handles these cases:
+ *
+ * 1) Null node, Pathname (absolute path)
+ * 2) Node, Pathname (path relative to Node)
+ * 3) Node, Null Pathname
+ */
+ Status = AcpiNsGetNode (Info->PrefixNode, Info->Pathname,
+ ACPI_NS_NO_UPSEARCH, &Info->ResolvedNode);
+ if (ACPI_FAILURE (Status))
+ {
+ return_ACPI_STATUS (Status);
+ }
}
/*
OpenPOWER on IntegriCloud