summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/FwVol
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-08-12 16:21:17 +0800
committerStar Zeng <star.zeng@intel.com>2016-08-29 15:34:23 +0800
commit2bc08e8cd64d2f2ab80f11abc63fc8291126626e (patch)
treef4b48d418bc9b484a29c64c78656538d8fc82c7d /MdeModulePkg/Core/Dxe/FwVol
parent81d9f86f8a7106b59057e5b29490eb04e38483bd (diff)
downloadedk2-2bc08e8cd64d2f2ab80f11abc63fc8291126626e.zip
edk2-2bc08e8cd64d2f2ab80f11abc63fc8291126626e.tar.gz
edk2-2bc08e8cd64d2f2ab80f11abc63fc8291126626e.tar.bz2
MdeModulePkg DxeCore: Return correct AuthStatus for FvReadFile
Inherit the authentication status from FV. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed by: Chao Zhang <chao.b.zhang@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Dxe/FwVol')
-rw-r--r--MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c
index 1acac5d..00e0d7d 100644
--- a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c
+++ b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c
@@ -1,7 +1,7 @@
/** @file
Implements functions to read firmware file
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -347,7 +347,10 @@ FvReadFile (
if ((FvDevice->FwVolHeader->Attributes & EFI_FVB2_MEMORY_MAPPED) == EFI_FVB2_MEMORY_MAPPED) {
*FileAttributes |= EFI_FV_FILE_ATTRIB_MEMORY_MAPPED;
}
- *AuthenticationStatus = 0;
+ //
+ // Inherit the authentication status.
+ //
+ *AuthenticationStatus = FvDevice->AuthenticationStatus;
*BufferSize = FileSize;
if (Buffer == NULL) {