diff mbox series

[edk2,5/8] SecurityPkg/Tcg2Config: Update RouteConfig function

Message ID 1524083594-32058-1-git-send-email-thomas.palmer@hpe.com
State Accepted
Commit efa5343a23e1d72a80deb463259756ac86ae1632
Headers show
Series [edk2,1/8] IntelFrameworkModulePkg/LegacyBootMaintUiLib: Update RouteConfig function | expand

Commit Message

Palmer, Thomas April 18, 2018, 8:33 p.m. UTC
According to UEFI spec, the RouteConfig protocol function should populate
the Progress pointer with an address inside Configuration.  This patch
ensures that these functions are compliant when EFI_NOT_FOUND is returned.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>

---
 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
index b3a849e91812..4195b6c68f5d 100644
--- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
+++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c
@@ -3,6 +3,7 @@ 
   NOTE: This module is only for reference only, each platform should have its own setup page.
 
 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials 
 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 
@@ -375,6 +376,8 @@  Tcg2RouteConfig (
     return EFI_INVALID_PARAMETER;
   }
 
+  *Progress = Configuration;
+
   return EFI_NOT_FOUND;
 }