mirror of https://github.com/acidanthera/audk.git
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:
parent
c4061d18ef
commit
38c977c148
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue