summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/nsnames.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/nsnames.c')
-rw-r--r--sys/contrib/dev/acpica/nsnames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/nsnames.c b/sys/contrib/dev/acpica/nsnames.c
index 8e53912..670ce3a 100644
--- a/sys/contrib/dev/acpica/nsnames.c
+++ b/sys/contrib/dev/acpica/nsnames.c
@@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: nsnames - Name manipulation and search
- * $Revision: 77 $
+ * $Revision: 78 $
*
******************************************************************************/
@@ -275,7 +275,7 @@ AcpiNsGetPathnameLength (
Size = 0;
NextNode = Node;
- while (NextNode != AcpiGbl_RootNode)
+ while (NextNode && (NextNode != AcpiGbl_RootNode))
{
Size += PATH_SEGMENT_LENGTH;
NextNode = AcpiNsGetParentNode (NextNode);
OpenPOWER on IntegriCloud