From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 C30978236E for ; Thu, 22 Dec 2016 17:13:53 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 22 Dec 2016 17:13:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,391,1477983600"; d="scan'208";a="1085748851" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 22 Dec 2016 17:13:53 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 22 Dec 2016 17:13:52 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Fri, 23 Dec 2016 09:13:51 +0800 From: "Tian, Feng" To: "Yao, Jiewen" , "edk2-devel@lists.01.org" CC: "Zeng, Star" , "Tian, Feng" Thread-Topic: [edk2] [PATCH] MdeModulePkg/CapsuleLib: remove ImageIndex check. Thread-Index: AQHSXGprL0g4t7xIG0W9QZf8xgzTd6EUur9A Date: Fri, 23 Dec 2016 01:13:50 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699A01AD@SHSMSX101.ccr.corp.intel.com> References: <1482421507-6704-1-git-send-email-jiewen.yao@intel.com> In-Reply-To: <1482421507-6704-1-git-send-email-jiewen.yao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg/CapsuleLib: remove ImageIndex check. 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: Fri, 23 Dec 2016 01:13:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Feng Tian Thanks Feng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Jiew= en Yao Sent: Thursday, December 22, 2016 11:45 PM To: edk2-devel@lists.01.org Cc: Tian, Feng ; Zeng, Star Subject: [edk2] [PATCH] MdeModulePkg/CapsuleLib: remove ImageIndex check. UEFI specification does not require ImageIndex check, it only requires Imag= eTypeId check. Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao --- MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c b/MdeMod= ulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c index 3ba3b9c..af08886 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c @@ -1013,8 +1013,7 @@ ProcessFmpCapsuleImage ( continue; } =20 - if (CompareGuid(&ImageHeader->UpdateImageTypeId, &TempFmpImageIn= fo->ImageTypeId) && - ImageHeader->UpdateImageIndex =3D=3D TempFmpImageInfo->Image= Index) { + if (CompareGuid(&ImageHeader->UpdateImageTypeId,=20 + &TempFmpImageInfo->ImageTypeId)) { AbortReason =3D NULL; if (ImageHeader->Version >=3D EFI_FIRMWARE_MANAGEMENT_CAPSULE_= IMAGE_HEADER_INIT_VERSION) { if(ImageHeader->UpdateHardwareInstance !=3D 0){ -- 2.7.4.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel