mirror of https://github.com/acidanthera/audk.git
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:
parent
b798ba454c
commit
7f0f1b8f45
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue