Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1858734imu; Fri, 14 Dec 2018 01:38:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/Val7nWYkM+FdgM3wFDDHUOw0KblchUlkrHpOnLHljGL+pu4RRBZMw0xd8V3lle2ZHr9yeG X-Received: by 2002:a17:902:9006:: with SMTP id a6mr2185568plp.334.1544780329387; Fri, 14 Dec 2018 01:38:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544780329; cv=none; d=google.com; s=arc-20160816; b=dwMnOpoQD9pYCnuSscqG3r/9acOvvj9K2QW33gY9T/V+bocJZR43L65zIud05RaJTi 971cqwv6MCKbU5mkeqpoGGQA6hmKOzXnMZZDCTy1Osnvz/NAJLKvTcpHVxw8guqx3O/5 o+pXBNxQ3ufewXi6c/HkHx9p9mJQouYU/XRwcAGbjtChoH4aBprA+HQW+JXBx1p281SC sKBPfNeMjZ0xnXZSfElVEi1yG1MyPFp/7d8TCxF2UIyVi1FfPwmnypREwuDti+1jMMdA I7IjZp/U5G7VyRuqw1wfX2B1KQ2NImynyiDdgNQ1W19caqj82M/mdzR3Spw8ib1eOTpw VWpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=aVN1UzYcKb5+uU4wA/pUghx9HYYTTPVQJHkYal9oN7c=; b=GED/1kP3HA1uuqbEe3EqgH5xnB65wdT0r4kBUEUO005wvzdIcO3ap6bKvU7Ee960bo P72a8NsCNCdL1I1qN4pyzJrbP/KS53pRbbF9A2I5TmuLZiy3OT+khdME6THCSH1muaVI JWuw11pwkkxO2gjxgvITb7vjdwIfAKwIXgauoC1j0Id+1p4LDHaezl8p8ogsclTWlrLv zqMtPIWKLmXpLwFCCaEKf+M5w3F+t7L4Iu/CRJjLfvRkRWsQzsiLLOQQtR/8qd4SUK5b 42sBElBY9v2z26M/LMoYcSTYiW8IR+3FEbLSrsTz0vNtBsMZv1DL2P8Hb5IzjtxxUZc/ WRHA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w67si2550713pgb.45.2018.12.14.01.38.34; Fri, 14 Dec 2018 01:38:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729086AbeLNJhh (ORCPT + 99 others); Fri, 14 Dec 2018 04:37:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:46150 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726418AbeLNJhg (ORCPT ); Fri, 14 Dec 2018 04:37:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F3247AC24; Fri, 14 Dec 2018 09:37:34 +0000 (UTC) Date: Fri, 14 Dec 2018 10:37:34 +0100 (CET) From: Miroslav Benes To: Josh Poimboeuf 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 In-Reply-To: <20181213223533.oucddzzhrnx7b7ov@treble> Message-ID: References: <20181129094431.7801-1-pmladek@suse.com> <20181129094431.7801-4-pmladek@suse.com> <20181213223533.oucddzzhrnx7b7ov@treble> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Dec 2018, Josh Poimboeuf wrote: > 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()? That would work for me. Miroslav