mirror of https://github.com/acidanthera/audk.git
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:
parent
ba82cb67d7
commit
8fdcc4123b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue