Add checking for VolumeHandle, if VolumeHandle is NULL, return EFI_INVALID_PARAMETER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9482 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-11-25 06:26:03 +00:00
parent 284af948b6
commit 3e4c5b49e4
1 changed files with 4 additions and 0 deletions

View File

@ -642,6 +642,10 @@ PeiFfsFindNextVolume (
PEI_CORE_INSTANCE *Private;
PEI_CORE_FV_HANDLE *CoreFvHandle;
if (VolumeHandle == NULL) {
return EFI_INVALID_PARAMETER;
}
Private = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices);
CoreFvHandle = FindNextCoreFvHandle (Private, Instance);