Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2724059yba; Mon, 8 Apr 2019 03:22:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwd2ENLe9jRykkdmEFB8Ku4bNhn44qGbDp0Zfl+r12fSqpaRBFofHxylLdbe5AIopSjraZY X-Received: by 2002:a62:480d:: with SMTP id v13mr29199349pfa.125.1554718956001; Mon, 08 Apr 2019 03:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554718955; cv=none; d=google.com; s=arc-20160816; b=EwW5FQ1mOMj36HbXLZ14F68ln4n9NL/cdx7Fa/P4ewrWcR2+pAAn6iHyZKsp/ps7TS sEtHETWFbMmhfFGu7lNwTl6DhwUVWaevX4V0mjSB5FROwhpIrsnfiloXxresXtS6cQO9 xhxTOyPZ+CEFR4IRnZzdPF4rmxGengFzIkUm+0UW5qFF8y4Qem+tlQobsILaXwnTJcms mw5m4PorwNvHDdqDzWXhpa1Qfh9lRklWLcWZRAyc5J+NqIEJoIiyNEo4KtD3F9W5oM/N jAN/R6+1kgKzxDEM0IKBW5ei4uaRSuv/dpBXkWrZunPbtdhE19viautkP5JwI7faN+1f A2Fg== 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=W13ir/3O4kQtJcvEFgEzE8M84aMPh80E8shkyCcmrhQ=; b=zj8in8lWGQHesUnd/RoEPYeAnrixqvgmOh/D+apl7cl1uq4WSml8QmGCiWWHhFoRfV /SI4xOf7rNenMThLF9UxWw0EPb5fW0zMSG4suKMb75nzmj8Fz3p46lrh4ajx5nnp5jof Y0LQKTmlmHvO1bhtRQ5vIQ25zqGdIkJ9dWXqXQMTgEZLiTjk5m/8oUvSqLickuHiGAXz wp58+0EPYIBGsOEAHjuoo0ndiBi2c5SMAdhcWiAk9xxbh6TCdX5KmhYnFunzO696A3rD 1m/WpOThPIPnRV/zxXgBViB5zNJU7PlXihoghyezqPTaNTTpv07LLgst7uMTCaVOlFpt 7ICg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dxarpl8c; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si21841704plt.397.2019.04.08.03.22.19; Mon, 08 Apr 2019 03:22:35 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Dxarpl8c; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbfDHKVh (ORCPT + 99 others); Mon, 8 Apr 2019 06:21:37 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40991 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfDHKVg (ORCPT ); Mon, 8 Apr 2019 06:21:36 -0400 Received: by mail-pf1-f194.google.com with SMTP id 188so7357935pfd.8 for ; Mon, 08 Apr 2019 03:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=W13ir/3O4kQtJcvEFgEzE8M84aMPh80E8shkyCcmrhQ=; b=Dxarpl8cgx29GxFDAS7SxpwcLQbKg2Dvp5vG4HrT/fFafnmk60oLfcKJOEIE5EVkNw /pYz772fK4UHJtey7FtWuEgzsLLfqIP+Irmx52pk/+kw7d+W+OyH8m/3jpvGzqgXbzhI 9KMvgZxEuWvOYhX3NbfbE+SN1GNW+Y39VW7hOTf5SQ6NGp8XhZxDlswvaWQGeVXP4e+0 ufpcz4JA3T6jwsJIhi0eEs1cC1yXYBygYfAgYnAcLOY6RMVdusUPyCp0xGuOVLUhCL4c 2LVqOXosi5ArfN9fBFpD/8BxyxrbmQ7jNJVloqTXaQFBC1SRlhJLu0vAo1OUq/pdQIZo Sy8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=W13ir/3O4kQtJcvEFgEzE8M84aMPh80E8shkyCcmrhQ=; b=GviG0h1fJDxVpsD02mD5IACcw5YVGKqSNijiukB7+pgeltrhL479eifLneWZqFUyLB 576KU0DlZHTikQv5SR90RlMn5ZN5q2ARVIkAcqYxixNAxwftE7ZEBSjas3A1witZZKkz d6CuzbMQ7xbD2+0W/g5mUGUaaAQ3N/IxlhbWUTsAhORmhL6uloOW9+rABvtzKdfc4zcT RowO5MPmFuy5PeitRaBd8oWqbwT8CuHnMyAS0QHMg2b2hj4DpdycNXH5LO43DyjZxsGV Mo4rPCs56jG9eb3yEiOIEc/ZfvQJWJ553C40dZCriLkprdjJkpXhzUCXgiB4xSX60kLP wNvw== X-Gm-Message-State: APjAAAVjQxG/ccIIFu/mh63PMR+Fx8iEN3sq5m88tHCMZDEbxPAkQzaF IxkpPL0CTd0W2odzjTbjC6j1nA== X-Received: by 2002:a62:5582:: with SMTP id j124mr29254633pfb.53.1554718896145; Mon, 08 Apr 2019 03:21:36 -0700 (PDT) Received: from localhost ([122.172.162.162]) by smtp.gmail.com with ESMTPSA id l192sm14128086pge.42.2019.04.08.03.21.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2019 03:21:34 -0700 (PDT) Date: Mon, 8 Apr 2019 15:51:32 +0530 From: Viresh Kumar To: Wen Yang Cc: linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn, Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , "Rafael J. Wysocki" , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 1/7] cpufreq: ap806: fix possible object reference leak Message-ID: <20190408102132.jeuulxxwkyvbppdp@vireshk-i7> References: <1554082674-2049-1-git-send-email-wen.yang99@zte.com.cn> <1554082674-2049-2-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554082674-2049-2-git-send-email-wen.yang99@zte.com.cn> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-04-19, 09:37, Wen Yang wrote: > The call to of_find_compatible_node returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function. > ./drivers/cpufreq/armada-8k-cpufreq.c:191:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Gregory Clement > Cc: Sebastian Hesselbarth > Cc: "Rafael J. Wysocki" > Cc: Viresh Kumar > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-pm@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/cpufreq/armada-8k-cpufreq.c | 1 + > 1 file changed, 1 insertion(+) I haven't received the cover-letter and patch 4/7 (because the tags in that commit were incorrect). I have applied all the 7 patches to my cpufreq tree though. Thanks. -- viresh