diff options
Diffstat (limited to 'source/components/namespace/nsaccess.c')
| -rw-r--r-- | source/components/namespace/nsaccess.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/components/namespace/nsaccess.c b/source/components/namespace/nsaccess.c index c332896f143e..4286223efe4e 100644 --- a/source/components/namespace/nsaccess.c +++ b/source/components/namespace/nsaccess.c @@ -251,14 +251,13 @@ AcpiNsRootInitialize ( * predefined names are at the root level. It is much easier to * just create and link the new node(s) here. */ - NewNode = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_NAMESPACE_NODE)); + NewNode = AcpiNsCreateNode (*ACPI_CAST_PTR (UINT32, InitVal->Name)); if (!NewNode) { Status = AE_NO_MEMORY; goto UnlockAndExit; } - ACPI_COPY_NAMESEG (NewNode->Name.Ascii, InitVal->Name); NewNode->DescriptorType = ACPI_DESC_TYPE_NAMED; NewNode->Type = InitVal->Type; |
