From: vanjeff Date: Mon, 10 Sep 2007 03:45:28 +0000 (+0000) Subject: Merge tracker. Add check whether CreateResourceNode successful or not. X-Git-Tag: edk2-stable201903~22186 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7f0f1b8f4546e8feb17144784e8be3547208ee92 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 --- 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; }