From: Thomas Palmer Date: Wed, 18 Apr 2018 20:33:11 +0000 (+0800) Subject: SecurityPkg/Tcg2Config: Update RouteConfig function X-Git-Tag: edk2-stable201903~1787 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=efa5343a23e1d72a80deb463259756ac86ae1632 SecurityPkg/Tcg2Config: Update RouteConfig function 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 Reviewed-by: Dandan Bi Reviewed-by: Eric Dong --- diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c index b3a849e918..4195b6c68f 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.
+(C) Copyright 2018 Hewlett Packard Enterprise Development LP
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; }