summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2018-06-01 21:58:13 +0800
committerStar Zeng <star.zeng@intel.com>2018-06-04 13:27:55 +0800
commit38c977c148e92e2af17c5d346d9b4b2e7a18680a (patch)
tree62005f5235e8b954b1b09e561c37af5217724c95 /MdeModulePkg/Core
parentc4061d18ef531147a58075f7f011a25b598d6aee (diff)
downloadedk2-38c977c148e92e2af17c5d346d9b4b2e7a18680a.tar.gz
edk2-38c977c148e92e2af17c5d346d9b4b2e7a18680a.tar.bz2
edk2-38c977c148e92e2af17c5d346d9b4b2e7a18680a.zip
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>
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Pei/FwVol/FwVol.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
index 8009546acd..4150b338b2 100644
--- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
@@ -495,12 +495,13 @@ PeiInitializeFv (
//
// Get handle of BFV
//
- FvPpi->ProcessVolume (
- FvPpi,
- SecCoreData->BootFirmwareVolumeBase,
- (UINTN)BfvHeader->FvLength,
- &FvHandle
- );
+ Status = FvPpi->ProcessVolume (
+ FvPpi,
+ SecCoreData->BootFirmwareVolumeBase,
+ (UINTN)BfvHeader->FvLength,
+ &FvHandle
+ );
+ ASSERT_EFI_ERROR (Status);
//
// Update internal PEI_CORE_FV array.