]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg FwVolDxe: Return correct AuthStatus for FvReadFile
authorStar Zeng <star.zeng@intel.com>
Fri, 26 Aug 2016 08:27:06 +0000 (16:27 +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>

IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolRead.c

index 8e2706bb8a72866c37df30ec15be4e467d41ce16..0d9021914f3331857fff87ca0a02c5224a282854 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements functions to read firmware file.\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -405,7 +405,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
 \r
   //\r
   // If Buffer is NULL, we only want to get some information\r