From patchwork Wed Apr 18 20:33:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Palmer, Thomas" X-Patchwork-Id: 133669 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp307855ljf; Wed, 18 Apr 2018 13:33:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49NAeultRAney4PJmUY2Q1njCrXdIbBuDytaCYrUX22jytTWwZ11RKa1sMGyaSaWytYEIMp X-Received: by 10.101.65.195 with SMTP id b3mr2839187pgq.118.1524083602699; Wed, 18 Apr 2018 13:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524083602; cv=none; d=google.com; s=arc-20160816; b=Kranr6hiU4DEA0QSCuTR4WZ/Go+jOBNdb22FVAc5OT1Koj7JubUy6CVctUw7ybvBCN EtrJ2XusK+iuzi90tNpdu21py1Nf7Tcna0wlQJ7J5uHk+DW9N2xTKaae0Hq85xkhWfRb /2BesftCnksooEOOd4NhWdre1Y5HyDButJ72pJJZJQpc+RQ3WfUGT78MAlNhT1wd2H40 Ux7F3D/BDY4BVWaZDQVLKGAt+p8VnAoMa5QKMhJkuY4m7bD9o5ktzQka+46IYycPa5XC LTyZvtUnNGms3dYWzP5ULMenF8R2Rte770hF+6RErRyfVSaiSe2zBftk2UcwnSqu6xCr qLSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=5AWP23rA00is82i/+izyoPCiQ137HVAsox6Yw3t/VPU=; b=GWRdGy9IE4a4OxUdU30mhzFLebA0hM3wlxwl5roIwiCwCHW/Uqmy7M9tnv0sEy75Se s+DC5wJwu+UWluKDxbYA+1rAHSdi0a7PlSQQS2Q9Usb5n61zSpaZRMGFt8zp/SSqCkTV 6yQghLJX4QKDL8qTzj8WgsJBT9dtzKGOWkINvIG1FJZLMwHRHcsl6Wvin3rREBRPVr5l pw2vYBYBBjucazdMUBc5CuxmtUHYI1VW61CPBD0Th9a99IqdR57EFk1/tWAoZ0fqo/NC ImzCIRt19otKB4V6LyhnZha4pGY4WJajeXHSwAn+fbwwlSH/UIYmf/VCPONtotzbwLtx pZWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id h10si1632448pgq.514.2018.04.18.13.33.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 13:33:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 47ADD226838FD; Wed, 18 Apr 2018 13:33:22 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: None (no SPF record) identity=mailfrom; client-ip=15.233.44.26; helo=g2t2353.austin.hpe.com; envelope-from=thomas.palmer@hpe.com; receiver=edk2-devel@lists.01.org Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9C402226847BC for ; Wed, 18 Apr 2018 13:33:20 -0700 (PDT) Received: from arm-build-server.us.rdlabs.hpecorp.net (arm-build-server.us.rdlabs.hpecorp.net [16.84.24.54]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 6A8228C; Wed, 18 Apr 2018 20:33:19 +0000 (UTC) From: Thomas Palmer To: edk2-devel@lists.01.org Date: Wed, 18 Apr 2018 15:33:11 -0500 Message-Id: <1524083594-32058-1-git-send-email-thomas.palmer@hpe.com> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH 5/8] SecurityPkg/Tcg2Config: Update RouteConfig function X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jiewen.yao@intel.com, nickle.wang@hpe.com, eric.dong@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 --- 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 --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.
+(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; }