From 7f0f1b8f4546e8feb17144784e8be3547208ee92 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Mon, 10 Sep 2007 03:45:28 +0000 Subject: [PATCH] Merge tracker. Add check whether CreateResourceNode successful or not. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3787 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c index 53faa6f967..1b44b6bc8f 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c @@ -642,6 +642,7 @@ Returns: Node = NULL; Node = AllocatePool (sizeof (PCI_RESOURCE_NODE)); + ASSERT (Node != NULL); if (Node == NULL) { return NULL; }