Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16000690ybl; Tue, 31 Dec 2019 19:28:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyMYdDoz8Pfb2r+8eHbyqvYFDcGAl50uIhdjs0bdfEDJCQUjB0yjEpT1xwwO2DLdUGjr2FS X-Received: by 2002:a50:e607:: with SMTP id y7mr72722900edm.213.1577849289271; Tue, 31 Dec 2019 19:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577849289; cv=none; d=google.com; s=arc-20160816; b=OG3G3/GiDJJNZmTHar+GYtms9Tf40rD5EXD68GiutaG6QMoZ5hGDMdMoGGAuwZs1gG yGPfR89RmgrLw3AxEHXaNnMeaPC3gRALhW5Z0TkdrmI8qFy3uu5CR2rg68IJ2MIgSXbl 6YflhxJt075sFJbOWfRlPKnhEb0+bphaA5WLN3gdUCJ8tcZUVgbxX9yh6mbgJEXWphou GStqu33aBx+qsDSIsKP+vPZ014S50SE2MRWGiadwx/h5M69r08nXNNMaeoU02RFK3qSr n7zh0tRWT9aT9DsMHiNk8bWypumre5bho1QAtekCXdZ8Iz0T1pwg9Ec3XjhWrzJh3ICg OeVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Fv/kC8iDABf6sLfJmiILU6rh8XitUBjaUMc9ljl9uGs=; b=RuDwmezmOcjGNfq6b080C6SmQ+hiRRquFGBJo/Hi34/77AFCX/OZ/lgxQr6JzaFxzy /XT33JCVWmijDrJmWWSa3+n1gb7EXqOHhszw8W0TE3kEl5dDGNzGpOnMe/yS3GCjPorV /1nwSz7fhaD/vgtEgozum+ucJeKUDVcnjXuG6Gj9Tv4HKTQlppPp6SKHQs2LfjpbpUED wbXAmr2XtntxpBVbGBTUo2FPnSjOEtgMSZvy8WPwxpRXtjr9aInQzdJSp34awaqGCsZq kt+JiV0pdPf9nc3maXovrILGwWC+SFYxJHLxqipqPvP/t3lDB1GwmT+JIK/1hEEc0orN J1+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bo2Og8iA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si31135528ejj.372.2019.12.31.19.27.31; Tue, 31 Dec 2019 19:28:09 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bo2Og8iA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727146AbgAADYK (ORCPT + 99 others); Tue, 31 Dec 2019 22:24:10 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:29036 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727133AbgAADYK (ORCPT ); Tue, 31 Dec 2019 22:24:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577849049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Fv/kC8iDABf6sLfJmiILU6rh8XitUBjaUMc9ljl9uGs=; b=bo2Og8iACrzdf81J0a6xspza0FeSLe9Gnqj5NlYKzrPgjQ3WJxp8hpKStinOcSJz/vgLps 5JKTl8A7ILUsYI3Flf/I3eFHl6kE6G6qQ/hNLtbiHq55nxyWt6j5N9Gi2VKrCrAx8/BhTl c+2DfgIZOrNAqFE6av9OO4VXhTP0Rrk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-112-YecvINgbMrm6ZQxKgbv6vQ-1; Tue, 31 Dec 2019 22:24:05 -0500 X-MC-Unique: YecvINgbMrm6ZQxKgbv6vQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A58A7800EB8; Wed, 1 Jan 2020 03:24:03 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-60.pek2.redhat.com [10.72.12.60]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 81CA660BE2; Wed, 1 Jan 2020 03:23:59 +0000 (UTC) Date: Wed, 1 Jan 2020 11:23:55 +0800 From: Dave Young To: Dan Williams Cc: Ingo Molnar , Taku Izumi , Michael Weiser , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Linux Kernel Mailing List , linux-efi , kexec@lists.infradead.org Subject: Re: [PATCH] efi: Fix handling of multiple contiguous efi_fake_mem= entries Message-ID: <20200101032355.GA14346@dhcp-128-65.nay.redhat.com> References: <157773590338.4153451.5898675419563883883.stgit@dwillia2-desk3.amr.corp.intel.com> <20191231014630.GA24942@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Perhaps a prettier way to do this is to push the handling of each > efi_fake_mem entry into a subroutine. However, I notice when a memmap > allocated by efi_memmap_alloc() is replaced by another dynamically > allocated memmap the previous one isn't released. I have a series that > fixes that up as well. Yes, agreed, thanks for the fix:)