]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c
MdeModulePkg DxeCore: Return correct AuthStatus for FvReadFile
[mirror_edk2.git] / 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