]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg DxeCore: Return correct AuthStatus for FvReadFile
authorStar Zeng <star.zeng@intel.com>
Fri, 12 Aug 2016 08:21:17 +0000 (16:21 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 29 Aug 2016 07:34:23 +0000 (15:34 +0800)
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>

MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c

index 1acac5d8fd79ff30e31f1b937865578e6f8c5f9e..00e0d7d289ecad8621d39a8758adab8c443284ea 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements functions to read firmware file\r
 \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -347,7 +347,10 @@ FvReadFile (
    if ((FvDevice->FwVolHeader->Attributes & EFI_FVB2_MEMORY_MAPPED) == EFI_FVB2_MEMORY_MAPPED) {\r
      *FileAttributes |= EFI_FV_FILE_ATTRIB_MEMORY_MAPPED;\r
    }\r
-  *AuthenticationStatus = 0;\r
+  //\r
+  // Inherit the authentication status.\r
+  //\r
+  *AuthenticationStatus = FvDevice->AuthenticationStatus;\r
   *BufferSize = FileSize;\r
 \r
   if (Buffer == NULL) {\r