From: Star Zeng Date: Fri, 12 Aug 2016 08:21:17 +0000 (+0800) Subject: MdeModulePkg DxeCore: Return correct AuthStatus for FvReadFile X-Git-Tag: edk2-stable201903~5931 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2bc08e8cd64d2f2ab80f11abc63fc8291126626e MdeModulePkg DxeCore: Return correct AuthStatus for FvReadFile Inherit the authentication status from FV. Cc: Jiewen Yao Cc: Liming Gao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao Reviewed by: Chao Zhang --- diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c index 1acac5d8fd..00e0d7d289 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.
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
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) {