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
This commit is contained in:
klu2 2010-01-04 05:20:18 +00:00
parent ba82cb67d7
commit 8fdcc4123b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}