diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-25 06:26:03 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-25 06:26:03 +0000 |
commit | 3e4c5b49e44c29fb0de20c078014ac7994bc3eda (patch) | |
tree | 90e629ed9fa69fab5e2d330e48961322dab875ef /MdeModulePkg | |
parent | 284af948b61d88e9c1c0c547028353e725693f34 (diff) | |
download | edk2-platforms-3e4c5b49e44c29fb0de20c078014ac7994bc3eda.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Pei/FwVol/FwVol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c index 7b74edb69a..7af67481f6 100644 --- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c @@ -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);
|