mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
81d9f86f8a
commit
2bc08e8cd6
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Implements functions to read firmware 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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
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) {
|
if ((FvDevice->FwVolHeader->Attributes & EFI_FVB2_MEMORY_MAPPED) == EFI_FVB2_MEMORY_MAPPED) {
|
||||||
*FileAttributes |= EFI_FV_FILE_ATTRIB_MEMORY_MAPPED;
|
*FileAttributes |= EFI_FV_FILE_ATTRIB_MEMORY_MAPPED;
|
||||||
}
|
}
|
||||||
*AuthenticationStatus = 0;
|
//
|
||||||
|
// Inherit the authentication status.
|
||||||
|
//
|
||||||
|
*AuthenticationStatus = FvDevice->AuthenticationStatus;
|
||||||
*BufferSize = FileSize;
|
*BufferSize = FileSize;
|
||||||
|
|
||||||
if (Buffer == NULL) {
|
if (Buffer == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue