From patchwork Wed Apr 18 20:32:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Palmer, Thomas" X-Patchwork-Id: 133667 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp307326ljf; Wed, 18 Apr 2018 13:32:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+VHKYpDnrR6jZJBsrpdrAtzfjyffTvJ29MNgkMrS5ubu0PjxuUjmcEYE4qFsZffIc4H9O+ X-Received: by 10.98.253.22 with SMTP id p22mr3216904pfh.217.1524083558265; Wed, 18 Apr 2018 13:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524083558; cv=none; d=google.com; s=arc-20160816; b=hrsZ/n6bVKit5+XJj5B3f72ygwNJfDbtvqoVbfBR/i/D45DeIEbo0zQ36ta6Sq4b/i MZ7N5dYGBDzsn4yX5GsUTS0C45yGyu65sMoLcGUK0BZA/0bOfw3Bb3qy6gxl0cjMHNKI OmICFU12+vEK3FEW/B/kD+GirAh405JzuJ3l5Id6MZjEIYo7M99jUnbpDDvjBK5As8Og ZsGja+VdLXLqXecvdzOkpMFrfWED6sm/Xf+GWhAzQ3lxR3W0QGxqrSmnoWdKlxXwkutf wZ/6UBdIx/dSRVXALIiL8i98u1dLjeyHFOgiwSg8ldijuwKRYNyfYgGKNonHk6/GQoqR u7JQ== 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=gJQL8m5dt/oQAx/tk/1GQ0Bdr4WWxJT+O6eqt/FIN08=; b=qliOPBziS1kxgTO7oOlxNmgaB1Y2JtJNRY0xZ4FGzE0AaHXJdG9m8u0XdM/GvKQ5WA EIobOsTP/UANNKZ/RjVA0w9koZo484HFD7cSzbal6HLGRhW8gDCxectvugviTNSp5wFp sBAMoGcKqzgHeCgpnlWBXwt0htKX3pLG4O2tJhfobSivrf5z5C2AavlEEHUm5Zua77jV LJULA/RWCIEqRMDO2/LJs7JBRk4HpX0Od9IUwOr6n7WTsIgXhoKlIaJAWIks7i0WZ5vl Mrp6Xx6AQ0IZT382Y/20ff75+iJoNHGwLD9O8jepzoJm3WLYp035syZchRAI9/+NDRjd QB4w== 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 e3-v6si1856071pld.229.2018.04.18.13.32.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 13:32:38 -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 D3B5022690AA2; Wed, 18 Apr 2018 13:32:37 -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.241.140.75; helo=g4t3426.houston.hpe.com; envelope-from=thomas.palmer@hpe.com; receiver=edk2-devel@lists.01.org Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) (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 9482F226847BC for ; Wed, 18 Apr 2018 13:32:36 -0700 (PDT) Received: from arm-build-server.us.rdlabs.hpecorp.net (arm-build-server.us.rdlabs.hpecorp.net [16.84.24.54]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id B278966; Wed, 18 Apr 2018 20:32:35 +0000 (UTC) From: Thomas Palmer To: edk2-devel@lists.01.org Date: Wed, 18 Apr 2018 15:32:26 -0500 Message-Id: <1524083547-32000-2-git-send-email-thomas.palmer@hpe.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524083547-32000-1-git-send-email-thomas.palmer@hpe.com> References: <1524083547-32000-1-git-send-email-thomas.palmer@hpe.com> Subject: [edk2] [PATCH 3/8] MdeModulePkg/RamDiskDxe: 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: nickle.wang@hpe.com, eric.dong@intel.com, star.zeng@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 --- MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c index b562bc102582..7ebd397fe68a 100644 --- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c +++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c @@ -2,7 +2,7 @@ HII Config Access protocol implementation of RamDiskDxe driver. Copyright (c) 2016, Intel Corporation. All rights reserved.
- (C) Copyright 2016 Hewlett Packard Enterprise Development LP
+ (C) Copyright 2016-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 @@ -277,6 +277,8 @@ RamDiskRouteConfig ( return EFI_INVALID_PARAMETER; } + *Progress = Configuration; + return EFI_NOT_FOUND; }