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
This commit is contained in:
vanjeff 2007-09-10 03:45:28 +00:00
parent b798ba454c
commit 7f0f1b8f45
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ Returns:
Node = NULL; Node = NULL;
Node = AllocatePool (sizeof (PCI_RESOURCE_NODE)); Node = AllocatePool (sizeof (PCI_RESOURCE_NODE));
ASSERT (Node != NULL);
if (Node == NULL) { if (Node == NULL) {
return NULL; return NULL;
} }