summaryrefslogtreecommitdiff
path: root/source/components/utilities/uttrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/utilities/uttrack.c')
-rw-r--r--source/components/utilities/uttrack.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/components/utilities/uttrack.c b/source/components/utilities/uttrack.c
index df04aa3a5..74c8e7dbe 100644
--- a/source/components/utilities/uttrack.c
+++ b/source/components/utilities/uttrack.c
@@ -715,7 +715,7 @@ AcpiUtDumpAllocations (
UINT32 Component,
const char *Module)
{
- ACPI_DEBUG_MEM_BLOCK *Element;
+ ACPI_DEBUG_MEM_BLOCK *Element = NULL;
ACPI_DESCRIPTOR *Descriptor;
UINT32 NumOutstanding = 0;
UINT8 DescriptorType;
@@ -737,7 +737,11 @@ AcpiUtDumpAllocations (
return_VOID;
}
- Element = AcpiGbl_GlobalList->ListHead;
+ if (AcpiGbl_GlobalList != NULL)
+ {
+ Element = AcpiGbl_GlobalList->ListHead;
+ }
+
while (Element)
{
if ((Element->Component & Component) &&