Namespace entries now deleted at a lower level

date	2000.05.08.16.02.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 18:25:14 +00:00
parent a7e87b5314
commit 6ae5bb727f

View File

@ -500,26 +500,12 @@ NsExecuteControlMethod (
/* TBD: Should we unlock the namespace during control method execution ? */
/*
* Excecute the method via the interpreter
*/
Status = AmlExecuteMethod (MethodEntry, Params, ReturnObjDesc);
/*
* Cleanup. We must delete everything in the namespace that was created by
* the execution of this method.
*/
/* TBD: what about called methods? */
if (MethodEntry->Scope)
{
CmReleaseMutex (MTX_NAMESPACE);
NsDeleteNamespaceSubtree (MethodEntry);
NsDeleteNamespaceByOwner (ObjDesc->Method.OwningId);
CmAcquireMutex (MTX_NAMESPACE);
}
return_ACPI_STATUS (Status);
}