Add more check to avoid access violation.
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12470 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -358,7 +358,7 @@ UefiIfrGetBufferTypeDefaults (
|
||||
ASSERT (UefiDefaults != NULL);
|
||||
|
||||
*UefiDefaults = AllocateZeroPool (sizeof (LIST_ENTRY));
|
||||
ASSERT (UefiDefaults != NULL);
|
||||
ASSERT (*UefiDefaults != NULL);
|
||||
InitializeListHead (*UefiDefaults);
|
||||
|
||||
DefaultLink = GetFirstNode (&ThunkContext->FormSet->DefaultStoreListHead);
|
||||
|
Reference in New Issue
Block a user