From patchwork Wed Apr 18 20:33:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Palmer, Thomas" X-Patchwork-Id: 133672 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp307934ljf; Wed, 18 Apr 2018 13:33:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/rAKXAP+6PMviRWOKQ9gWK/N7XWs7C7FXOjbvIVDZBo1fXw/rxq2yK6ag2EGxpKO4QR9t4 X-Received: by 2002:a17:902:8488:: with SMTP id c8-v6mr3349818plo.357.1524083608210; Wed, 18 Apr 2018 13:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524083608; cv=none; d=google.com; s=arc-20160816; b=ER15QfVhrqjuzr8N1KL/q9JQb3BKJvx83CmReJO7swOTjcRfC+T6CnkQAamWzh3yCA 4Y+Drqx2I+zKTmnD6RtkB0vfMEVObxJ5hyEEEDvv74GRPbPjwbUxaEDWLfkjmE6F3/wm DPoot+ED+pQzQfzAPnt90sHpdKO5Yp4GVgr0bdGYbgH9bgVbF2ThZV2s6MoyigtyTiMO GkOMBOfdTdTdJ8AKwEbSKTKcPir6NpZHLfjJAA7EVvWa4A0LhH1OjI+r7WuEvak6mKrw ojRz1+IR/R0z6lPKMuQFIGqkNz6lp1UFmq4IZXoHo5l8kLJ+PFBqM6W1pfWFUjo37UG1 97Hw== 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:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=f/CU5xkTjH5soBmfQUQ8iiTVucFLmwuqVds1z0JvJ+4=; b=commnlegHZju/Lh5Dky6/TArmGdM2o1Ya1VB+l4ApoeErCgMXFcCmXrSxRTfm6Uqig ZSapWlmsRSIAf0r06yYyAFgsSvrRyWose2jftXAmURYtouhK9inHa5Q/N4V/78g9gDwp PSbAKI0fujVTZSIFGoVxL1vis9WlB2j/nmTAbo6NDouy7dQOMjHmjyEJ3Iwo0l5l61Gi 8heFNm3zU5YW1e3NCnaKABwS5PhnTjoeKYgp75+d9wHeR650kIRHU3+U6uZbBb7YC46L P3if0UmWAo32f91GSR30LksrTmJen3ePCWcqJbwUmHRlYagjN7vECjRi+fILA2u1l4Ne ZOfg== 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 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id k25si1729961pfi.54.2018.04.18.13.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 13:33:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 B465022690AC9; Wed, 18 Apr 2018 13:33:25 -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 D0CB722690AAC for ; Wed, 18 Apr 2018 13:33:24 -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 EC8758C; Wed, 18 Apr 2018 20:33:23 +0000 (UTC) From: Thomas Palmer To: edk2-devel@lists.01.org Date: Wed, 18 Apr 2018 15:33:14 -0500 Message-Id: <1524083594-32058-4-git-send-email-thomas.palmer@hpe.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524083594-32058-1-git-send-email-thomas.palmer@hpe.com> References: <1524083594-32058-1-git-send-email-thomas.palmer@hpe.com> Subject: [edk2] [PATCH 8/8] SecurityPkg/UserProfileManagerDxe: 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 --- .../UserIdentification/UserProfileManagerDxe/UserProfileManager.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/UserIdentification/UserProfileManagerDxe/UserProfileManager.c b/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c index 4bba0824c7ab..b84f2cdf9c02 100644 --- a/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c +++ b/SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManager.c @@ -5,6 +5,7 @@ policy, etc. Copyright (c) 2009 - 2011, 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 @@ -805,6 +806,8 @@ FakeRouteConfig ( return EFI_INVALID_PARAMETER; } + *Progress = Configuration; + return EFI_NOT_FOUND; }