diff options
Diffstat (limited to 'source/components/namespace/nsload.c')
-rw-r--r-- | source/components/namespace/nsload.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source/components/namespace/nsload.c b/source/components/namespace/nsload.c index b6f85ba031ad..f893348e9670 100644 --- a/source/components/namespace/nsload.c +++ b/source/components/namespace/nsload.c @@ -128,7 +128,21 @@ AcpiNsLoadTable ( } else { - (void) AcpiTbReleaseOwnerId (TableIndex); + /* + * On error, delete any namespace objects created by this table. + * We cannot initialize these objects, so delete them. There are + * a couple of expecially bad cases: + * AE_ALREADY_EXISTS - namespace collision. + * AE_NOT_FOUND - the target of a Scope operator does not + * exist. This target of Scope must already exist in the + * namespace, as per the ACPI specification. + */ + (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); + AcpiNsDeleteNamespaceByOwner ( + AcpiGbl_RootTableList.Tables[TableIndex].OwnerId); + AcpiTbReleaseOwnerId (TableIndex); + + return_ACPI_STATUS (Status); } Unlock: |