mirror of https://github.com/acidanthera/audk.git
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:
parent
284af948b6
commit
3e4c5b49e4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue