From 78c790147d0f19a8468a7745d972556f28684ec3 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 18:19:05 +0000 Subject: [PATCH] Clear NTEs as they are deleted date 2000.05.08.16.02.00; author rmoore1; state Exp; --- source/components/namespace/nsalloc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/components/namespace/nsalloc.c b/source/components/namespace/nsalloc.c index 443c9fc6e..d36de13cb 100644 --- a/source/components/namespace/nsalloc.c +++ b/source/components/namespace/nsalloc.c @@ -224,6 +224,12 @@ NsDeleteNamespaceSubtree ( CmRemoveReference (ObjDesc); } + + /* Clear the NTE in case this scope is reused (e.g., a control method scope) */ + + ChildHandle->Type = ACPI_TYPE_Any; + ChildHandle->Name = 0; + /* Check if this object has any children */ if (NsGetNextObject (ACPI_TYPE_Any, ChildHandle, 0))