Merge tracker. Add check whether CreateResourceNode successful or not.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Sep 2007 03:45:28 +0000 (03:45 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 Sep 2007 03:45:28 +0000 (03:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3787 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c

index 53faa6f..1b44b6b 100644 (file)
@@ -642,6 +642,7 @@ Returns:
   Node    = NULL;\r
 \r
   Node    = AllocatePool (sizeof (PCI_RESOURCE_NODE));\r
+  ASSERT (Node != NULL);\r
   if (Node == NULL) {\r
     return NULL;\r
   }\r