Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1400907imu; Thu, 13 Dec 2018 14:36:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/UFigEDnT8bxyEON3FX1YFuHjxD2GY0SiRH2PVutjRw4zjiVrsTIX1pDN5dG+PUb87f9mAq X-Received: by 2002:a17:902:5ac7:: with SMTP id g7mr609968plm.212.1544740607408; Thu, 13 Dec 2018 14:36:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544740607; cv=none; d=google.com; s=arc-20160816; b=VfliflcuToi1zoweHcsCCNf1Y2ay/+F0m5n12HPkVU1jfk230C73RfQzMbceXnInTy PQnZwHKtXdEwhI0dMGpOmL4yMqQq0mFddpH5fd4FE/+eiB00ZmdIIHMs5nJ+tnwa4JgA yUftWlpSio8/w0i79rXsjGEhhV80gGv+xK1jfq3OcO/4pFNAqgnDTyFKcNXDeWigk38j DW0UGHayd0lXk1tFDLAaDxhwNi0he9Y0XGSUOAJy40j1YxhF/wfafY7L7TlyiMtIdEac KKlWEkN04FvIlN0uoKpqJZK2WPK5wyLdPFwEgwfz8cb7SE/KtHMqiQeBJKQ6P1aKt3uK Q4UA== 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; bh=FmEqkeiTDdac2aXPGZkIWpPZgh1koXotyCQ4IkTEl1I=; b=IWlfRDCQ5XuCeCzjEvrzOAcFe9uO+iz201Oz/Fx4srnLKUtU8+kmF+OP5lYVPIpRL7 cCDcEP7paSyHaXMrSMsfKfIJRSHvt1HQEdVgcqfuCYZVVrST3NATZiaU/2Qh3D/5hSOV /5/7UuoQYw2SPvlAD5nL7uRw43nMUnc8+vhxRIwbYlYbODP1RhFVudYmtrfHAkAYcpQ6 G5ZFpws3aV86TFRY3HARvxDOhIXPv0vcPjfu7/46qmMLpIf/TsXLIs41TijWUWCWc11f F5Yr8ZUxJ4Knh5czcNqZlB9NS9umLh7B3cG6XwobBlzdr7f6AgahWTQSS7zRjkiDUKKJ J06Q== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si2506762pfg.245.2018.12.13.14.36.31; Thu, 13 Dec 2018 14:36:47 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727901AbeLMWfl (ORCPT + 99 others); Thu, 13 Dec 2018 17:35:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53094 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbeLMWfl (ORCPT ); Thu, 13 Dec 2018 17:35:41 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 073F77CDE4; Thu, 13 Dec 2018 22:35:41 +0000 (UTC) Received: from treble (ovpn-120-195.rdu2.redhat.com [10.10.120.195]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2709A66075; Thu, 13 Dec 2018 22:35:35 +0000 (UTC) Date: Thu, 13 Dec 2018 16:35:33 -0600 From: Josh Poimboeuf To: Miroslav Benes Cc: Petr Mladek , Jiri Kosina , Jason Baron , Joe Lawrence , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu Subject: Re: [PATCH v14 03/11] livepatch: Consolidate klp_free functions Message-ID: <20181213223533.oucddzzhrnx7b7ov@treble> References: <20181129094431.7801-1-pmladek@suse.com> <20181129094431.7801-4-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 13 Dec 2018 22:35:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2018 at 03:59:57PM +0100, Miroslav Benes wrote: > On Thu, 29 Nov 2018, Petr Mladek wrote: > > > -static int klp_init_patch(struct klp_patch *patch) > > +/* Init operations that must succeed before klp_free_patch() can be called. */ > > +static int klp_init_patch_before_free(struct klp_patch *patch) > > There is no klp_free_patch() now, so the comment is not correct. Also I > don't know if the function name is ideal, but I don't have a better one. Yeah, I found the name of this function to be confusing. It sounds like you're initializing the patch before freeing it, which seems like an obvious thing to do :-) How about klp_init_patch_early()? -- Josh