mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 17:34:43 +03:00
Better check for acpi objects
date 99.09.27.21.14.00; author rmoore1; state Exp;
This commit is contained in:
parent
22f1a85e78
commit
53e2364fd8
@ -426,10 +426,13 @@ CmDumpCurrentAllocations (
|
||||
|
||||
/* Most of the elements will be internal objects. */
|
||||
|
||||
if (Element->Size == sizeof (ACPI_OBJECT_INTERNAL))
|
||||
if (Element->Size >= sizeof (ACPI_OBJECT_Common))
|
||||
{
|
||||
DEBUG_PRINT_RAW (TRACE_ALLOCATIONS | TRACE_TABLES, (" Type %s",
|
||||
Gbl_NsTypeNames[((ACPI_OBJECT_INTERNAL *)(Element->Address))->Common.Type]));
|
||||
if (((ACPI_OBJECT_INTERNAL *)(Element->Address))->Common.DataType == DESC_TYPE_ACPI_OBJ)
|
||||
{
|
||||
DEBUG_PRINT_RAW (TRACE_ALLOCATIONS | TRACE_TABLES, (" Type %s",
|
||||
Gbl_NsTypeNames[((ACPI_OBJECT_INTERNAL *)(Element->Address))->Common.Type]));
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_PRINT_RAW (TRACE_ALLOCATIONS | TRACE_TABLES, ("\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user