diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-04 05:20:18 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-04 05:20:18 +0000 |
commit | 8fdcc4123bfbb48b2ce9018061895a8388ef5827 (patch) | |
tree | 7ac2845d4cd134ef11490de680481fd6d864be2b /MdeModulePkg | |
parent | ba82cb67d7d4059970882f0202fc8943e36df3ec (diff) | |
download | edk2-platforms-8fdcc4123bfbb48b2ce9018061895a8388ef5827.tar.xz |
check whether FvHandle is NULL for FfsGetVolumeInfo() interface.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9664 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Pei/FwVol/FwVol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c index 8bf096a67e..19e3f1df3d 100644 --- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c @@ -813,7 +813,7 @@ PeiFfsGetVolumeInfo ( {
PEI_CORE_FV_HANDLE *CoreHandle;
- if (VolumeInfo == NULL) {
+ if ((VolumeInfo == NULL) || (VolumeHandle == NULL)) {
return EFI_INVALID_PARAMETER;
}
@@ -1206,7 +1206,7 @@ PeiFfs2FvPpiGetVolumeInfo ( EFI_FIRMWARE_VOLUME_HEADER FwVolHeader;
EFI_FIRMWARE_VOLUME_EXT_HEADER *FwVolExHeaderInfo;
- if (VolumeInfo == NULL) {
+ if ((VolumeInfo == NULL) || (FvHandle == NULL)) {
return EFI_INVALID_PARAMETER;
}
|