Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1168942yba; Tue, 2 Apr 2019 03:51:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqw48yvREtioP0gR+mj4ruxdv4vA5oqzpliNH7vOG2nOkbK3XrxhciDbNmYjbvJ2os71psuk X-Received: by 2002:a62:6444:: with SMTP id y65mr59891147pfb.56.1554202298748; Tue, 02 Apr 2019 03:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554202298; cv=none; d=google.com; s=arc-20160816; b=q8C2hzqtkrIeFA2Y5z4lOAySSuH+ljCBAiTzXfqe6i90i/a04fg/WBAKSHryOXp4dA 711aqq/uH3SutUzRXDKua/83jWDz5sejLSC/+IDS6AqmzoobmyrH10S07h9Q06D4x1OG cKj2UE9KrzkeMI40E8tO1QsLQj9bV9hHv9rKoBB/aZqgobUYWwIry69T0wPscPOV6Iy8 GZcKWg5WIXYyhgZHtIMm6rO+cwJCZ4IYnW876Kh/6cjqsd/RgwkYvC4jcE3wJbQYUwKp ASaxXPEMjMZZSrNEEp2XmpB1IMFygvopYa7MEyVe7PZpVI3iRCDcsncV8GGWBmTXP9gH s2mA== 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=BcxwJk8MJhK8dPE+75bdFcHKv/LDXSodPWxHZP9VuS4=; b=uUNcS6E68/w1pZYtqaqUc4rRK1fkXFLhsAnb+niUQ42ANh1RSqK4Ut/xjX6bxxG+1c xEN5CY3aB/sWEU7pr2DNpKqW6GWlUhOnXaajWf1CbpDuN0Tab7ITOqXSdjkpZMQqriqi LTT5xWbLo8ZNZhB25aFTb510MDE06yE02SF2pV0vCjGnCV5uKBH5XreNvOudXJhQVLa4 1wEqgco0gDxKnL2eagnXdZJBn1lTfT81ATOgwzulvu5TsQQz1DnFt2DhFP8BozPxe68f oz38JcsIP/L0NHAnHaXKJwIfkwcjlHUzSo8x5TvF5GW6z2EuUUWpE1TOrXgrxF7ls5ju wz2g== 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 a5si10770105pff.39.2019.04.02.03.51.22; Tue, 02 Apr 2019 03:51:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729477AbfDBKur (ORCPT + 99 others); Tue, 2 Apr 2019 06:50:47 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:13991 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbfDBKur (ORCPT ); Tue, 2 Apr 2019 06:50:47 -0400 X-IronPort-AV: E=Sophos;i="5.60,300,1549926000"; d="scan'208";a="301509852" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2019 12:50:27 +0200 Date: Tue, 2 Apr 2019 12:50:23 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Wen Yang , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Viresh Kumar , Yi Wang Subject: Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak In-Reply-To: Message-ID: References: <1554082674-2049-8-git-send-email-wen.yang99@zte.com.cn> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-2019212169-1554202224=:3297" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-2019212169-1554202224=:3297 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Tue, 2 Apr 2019, Markus Elfring wrote: > > The call to of_get_cpu_node returns a node pointer with refcount > > incremented thus it must be explicitly decremented after the last > > usage. > > I would prefer a wording like the following. > > A reference counter was incremented for a CPU node by a call of > the function “of_get_cpu_node”. > Thus decrement it after the last usage. The original log message seems perfectly clear. > > > > Detected by coccinelle with the following warnings: > > I wonder about the shown duplicate notification. > Can a single message be sufficient for the code search result > in this source file? Since you have removed the context, I have no idea what you are talking about. julia --8323329-2019212169-1554202224=:3297--