diff options
Diffstat (limited to 'source/components/namespace/nsobject.c')
-rw-r--r-- | source/components/namespace/nsobject.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/components/namespace/nsobject.c b/source/components/namespace/nsobject.c index 331759174255..9221ac00aa2e 100644 --- a/source/components/namespace/nsobject.c +++ b/source/components/namespace/nsobject.c @@ -265,6 +265,17 @@ AcpiNsDetachObject ( } } + /* + * Detach the object from any data objects (which are still held by + * the namespace node) + */ + + if (ObjDesc->Common.NextObject && + ((ObjDesc->Common.NextObject)->Common.Type == ACPI_TYPE_LOCAL_DATA)) + { + ObjDesc->Common.NextObject = NULL; + } + /* Reset the node type to untyped */ Node->Type = ACPI_TYPE_ANY; |