summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2023-03-22 13:07:42 -0700
committerGitHub <noreply@github.com>2023-03-22 13:07:42 -0700
commit84b3752cfa0ce4b0ebecae5e193c937b8ed6e278 (patch)
tree5837df635e09cf8efa09e560e4a0757d347daa95
parent9d7eb6a56929b9bda90b52d59f51741602e3ba57 (diff)
parent0d5f467d6a0ba852ea3aad68663cbcbd43300fd4 (diff)
downloadacpica-84b3752cfa0ce4b0ebecae5e193c937b8ed6e278.tar.gz
Merge pull request #858 from void0red/patch-1
check null return of ACPI_ALLOCATE_ZEROED in AcpiDbDisplayObjects
-rw-r--r--source/components/debugger/dbnames.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/components/debugger/dbnames.c b/source/components/debugger/dbnames.c
index ae4a10ca5..084a25287 100644
--- a/source/components/debugger/dbnames.c
+++ b/source/components/debugger/dbnames.c
@@ -883,6 +883,9 @@ AcpiDbDisplayObjects (
if (!ObjTypeArg)
{
ObjectInfo = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_OBJECT_INFO));
+
+ if (!ObjectInfo)
+ return (AE_NO_MEMORY);
/* Walk the namespace from the root */