From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 598131A1DEF for ; Sun, 28 Aug 2016 18:26:45 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 28 Aug 2016 18:26:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,593,1464678000"; d="scan'208";a="754490276" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 28 Aug 2016 18:26:45 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 28 Aug 2016 18:26:44 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 28 Aug 2016 18:26:44 -0700 Received: from shsmsx152.ccr.corp.intel.com ([169.254.6.107]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.8]) with mapi id 14.03.0301.000; Mon, 29 Aug 2016 09:26:41 +0800 From: "Zhang, Chao B" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Gao, Liming" Thread-Topic: [PATCH 2/2] IntelFrameworkModulePkg FwVolDxe: Return correct AuthStatus for FvReadFile Thread-Index: AQHR/3ZD3bslYbsor024JGo9iq5Pd6BfKcQA Date: Mon, 29 Aug 2016 01:26:41 +0000 Message-ID: References: <1472201116-194368-1-git-send-email-star.zeng@intel.com> <1472201116-194368-3-git-send-email-star.zeng@intel.com> In-Reply-To: <1472201116-194368-3-git-send-email-star.zeng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWMwZjk3ODktYzYzMS00YTdhLWI1YWEtODIxMGE2ODg3YzRiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlNUb2VHclE2NFh5XC84UkxuM2xkbWV5K2dkU1NBaWJkZFZCOXlVYjhNK0VNPSJ9 x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 2/2] IntelFrameworkModulePkg FwVolDxe: Return correct AuthStatus for FvReadFile X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 01:26:45 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Serial Reviewed by: Chao Zhang Thanks & Best regards Chao Zhang -----Original Message----- From: Zeng, Star=20 Sent: Friday, August 26, 2016 4:45 PM To: edk2-devel@lists.01.org Cc: Zeng, Star; Yao, Jiewen; Gao, Liming; Zhang, Chao B Subject: [PATCH 2/2] IntelFrameworkModulePkg FwVolDxe: Return correct AuthS= tatus for FvReadFile Inherit the authentication status from FV. Cc: Jiewen Yao Cc: Liming Gao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- .../Universal/FirmwareVolume/FwVolDxe/FwVolRead.c | 7 +++= ++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVo= lRead.c b/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolRe= ad.c index 8e2706bb8a72..0d9021914f33 100644 --- a/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolRead.c +++ b/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolRead.c @@ -1,7 +1,7 @@ /** @file Implements functions to read firmware file. =20 - Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
=20 This program and the accompanying materials are licensed and made available under the terms and conditions @@ -405,7 +405,10 @@ FvReadFile ( if ((FvDevice->FwVolHeader->Attributes & EFI_FVB2_MEMORY_MAPPED) =3D=3D= EFI_FVB2_MEMORY_MAPPED) { *FileAttributes |=3D EFI_FV_FILE_ATTRIB_MEMORY_MAPPED; } - *AuthenticationStatus =3D 0; + // + // Inherit the authentication status. + // + *AuthenticationStatus =3D FvDevice->AuthenticationStatus; =20 // // If Buffer is NULL, we only want to get some information --=20 2.7.0.windows.1