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:
@ -642,6 +642,10 @@ PeiFfsFindNextVolume (
|
|||||||
PEI_CORE_INSTANCE *Private;
|
PEI_CORE_INSTANCE *Private;
|
||||||
PEI_CORE_FV_HANDLE *CoreFvHandle;
|
PEI_CORE_FV_HANDLE *CoreFvHandle;
|
||||||
|
|
||||||
|
if (VolumeHandle == NULL) {
|
||||||
|
return EFI_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
Private = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices);
|
Private = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices);
|
||||||
|
|
||||||
CoreFvHandle = FindNextCoreFvHandle (Private, Instance);
|
CoreFvHandle = FindNextCoreFvHandle (Private, Instance);
|
||||||
|
Reference in New Issue
Block a user