MdeModulePkg PeiCore: Check error status when processing boot FV

Until now the possible errors returned from processing
boot firmware volume were not checked, which could cause
misbehavior in further booting stages. Add relevant assert.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
Marcin Wojtas 2018-06-01 21:58:13 +08:00 committed by Star Zeng
parent c4061d18ef
commit 38c977c148
1 changed files with 7 additions and 6 deletions

View File

@ -495,12 +495,13 @@ PeiInitializeFv (
//
// Get handle of BFV
//
FvPpi->ProcessVolume (
Status = FvPpi->ProcessVolume (
FvPpi,
SecCoreData->BootFirmwareVolumeBase,
(UINTN)BfvHeader->FvLength,
&FvHandle
);
ASSERT_EFI_ERROR (Status);
//
// Update internal PEI_CORE_FV array.