summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-10 03:45:28 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-10 03:45:28 +0000
commit7f0f1b8f4546e8feb17144784e8be3547208ee92 (patch)
treec5deae3923d2b5ac386c4e2ec68ab077a2fd332f
parentb798ba454cc9455cd470a0e9d745ccd3c07380f0 (diff)
downloadedk2-7f0f1b8f4546e8feb17144784e8be3547208ee92.zip
edk2-7f0f1b8f4546e8feb17144784e8be3547208ee92.tar.gz
edk2-7f0f1b8f4546e8feb17144784e8be3547208ee92.tar.bz2
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
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
index 53faa6f..1b44b6b 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;
}