Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5922376imm; Tue, 26 Jun 2018 22:11:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLOrmCGq2cc01Tjw2HPp/P/S9RbP2Jd6Nznp3dHkXdIPvwKOIk4KtCUszNS5pcbWqHBXzw2 X-Received: by 2002:a17:902:bc85:: with SMTP id bb5-v6mr4543785plb.229.1530076267842; Tue, 26 Jun 2018 22:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530076267; cv=none; d=google.com; s=arc-20160816; b=TOKH4Y2LJa3vDK0MZAzwcBF2STNdfbShqHUmZkE0LUvinzk7XGLQnvPrHMEKwcm3dK +/AfFt6udZTEPDaoCkLm0sGy3cMTvDmTrAT4zwE+JZHkx/jWLd6jsS/Jjrt42BRgvMVB Wwc6WHJe9D5aGzayPTZH9qIV2D77uyy3yzuP/fHAI7G38LR/khOSKnubnfltPr2Olmqt VjSBbFOXLsat0ZM0DP2pIcs5RMsZdVJkXoz6PUcjUjqyZf+loCT6LEPFN3FnZKetQWIJ ke0uO1GxA8yi7nzEojtk7jwPVnZEpSZQh0LddC6b/kVnB2291S2bPzzn81+EHwxgvGH5 K+yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=RA/KM4rLXY+Ob9aKN1m1K7H3GGkThrJIIQuRIFsK6J8=; b=lxaB0XhqHMq4KlaomiWVwaqREwkX6N1+z1dXwpPSpqMmXUlyqbLuuU1qNwUYtcGzk5 tIkxoyll2PaWDps73l4y9+tSWLZjWOu4615gq4lPOeFKjLJBhpvUlLoyAygmlvlszlZ+ pR85CDrOG1SI3Kv7woBVNX3Tn5pXXygUFRVMEFztyAwWN+gye4HTIM2rBt78iymtzTaq AaMzXk/1ZFmDx7QF1BuJb/gWNnUKenTyAuUQWwG0h3NTgDE9xqS+BoXPtsWrTJGULw5R v2urTD2u7bvVsJxbhzR67tmDAggaU1Ue4mkNQUAI7kPMDKSquqSrgI2NiS7uMj4rSW19 HUsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9-v6si2969001pla.377.2018.06.26.22.10.53; Tue, 26 Jun 2018 22:11:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752858AbeF0Evk (ORCPT + 99 others); Wed, 27 Jun 2018 00:51:40 -0400 Received: from mga09.intel.com ([134.134.136.24]:55959 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbeF0Evi (ORCPT ); Wed, 27 Jun 2018 00:51:38 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2018 21:51:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,277,1526367600"; d="scan'208";a="61702742" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga002.fm.intel.com with ESMTP; 26 Jun 2018 21:51:28 -0700 Received: from orsmsx162.amr.corp.intel.com (10.22.240.85) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 26 Jun 2018 21:51:28 -0700 Received: from orsmsx111.amr.corp.intel.com ([169.254.12.50]) by ORSMSX162.amr.corp.intel.com ([169.254.3.196]) with mapi id 14.03.0319.002; Tue, 26 Jun 2018 21:51:28 -0700 From: "Prakhya, Sai Praneeth" To: Ard Biesheuvel CC: linux-efi , Linux Kernel Mailing List , Lee Chun-Yi , Borislav Petkov , Dave Young , Laszlo Ersek , Bhupesh Sharma , "Neri, Ricardo" , "Shankar, Ravi V" , Matt Fleming Subject: RE: [PATCH] efi: Free existing memory map before installing new memory map Thread-Topic: [PATCH] efi: Free existing memory map before installing new memory map Thread-Index: AQHUDPc2R4ZR/m4foUijQgjP6VqzEKRyvjQAgADFEhA= Date: Wed, 27 Jun 2018 04:51:27 +0000 Message-ID: References: <1529980892-11833-1-git-send-email-sai.praneeth.prakhya@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODc1Zjc2ZWItMWQ5Yy00YWZjLWJiMWEtMGRjZTA4OWNiNmE5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicWQ5V3h6a0ZrdTMyd1wvNzFrOE1ncHB1c2NXaHh6MDlmdUZpRlJmR2l6VmdJMWxwXC9ieTM4RnpON2tMZ3JkVUFQIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiA+ICsgICAgICAgLyogRnJlZSB0aGUgbWVtb3J5IGFsbG9jYXRlZCB0byB0aGUgZXhpc3Rpbmcg bWVtb3J5IG1hcCAqLw0KPiA+ICsgICAgICAgZWZpX21lbW1hcF9mcmVlKGVmaS5tZW1tYXAucGh5 c19tYXAsIGVmaS5tZW1tYXAubnJfbWFwLA0KPiA+ICsgZWZpLm1lbW1hcC5sYXRlKTsNCj4gPiAr DQo+ID4gICAgICAgICBkYXRhLnBoeXNfbWFwID0gYWRkcjsNCj4gPiAgICAgICAgIGRhdGEuc2l6 ZSA9IGVmaS5tZW1tYXAuZGVzY19zaXplICogbnJfbWFwOw0KPiA+ICAgICAgICAgZGF0YS5kZXNj X3ZlcnNpb24gPSBlZmkubWVtbWFwLmRlc2NfdmVyc2lvbjsNCj4gPiAtLQ0KPiA+IDIuNy40DQo+ ID4NCj4gDQo+IElmIG9ubHkgaXQgd2VyZSBzbyBzaW1wbGUgOi0pDQo+IA0KPiBBdCB0aGlzIHBv aW50LCBlZmkubWVtbWFwLnBoeXNfbWFwIGNvdWxkIHBvaW50IHRvIG1lbW9yeSB0aGF0IHdhcyBh bGxvY2F0ZWQNCj4gZWFybHksIGFsbG9jYXRlZCBsYXRlIG9yIHNpbXBseSBwYXNzZWQgdG8gdGhl IE9TIGF0IGJvb3QgdGltZSBieSB0aGUgc3R1YiAoaW4NCj4gd2hpY2ggY2FzZSBpdCB3YXMgbWVt YmxvY2tfcmVzZXJ2ZSgpZCBidXQgbm90IG1lbWJsb2NrX2FsbG9jKClkLCBhbmQgaXQNCj4gc2hv dWxkIG5vdCBiZSBmcmVlZCkNCj4gDQo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