]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolRead.c
IntelFrameworkModulePkg FwVolDxe: Return correct AuthStatus for FvReadFile
[mirror_edk2.git] / 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