Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2335527imb; Mon, 4 Mar 2019 02:25:37 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibfu/4/Hb+L2LxjHydlfRmCxA9CK52tajJBkzULFC4LITkr8goiqgt+F6LwLJNzp4OD/14x X-Received: by 2002:a62:3990:: with SMTP id u16mr19357289pfj.80.1551695137072; Mon, 04 Mar 2019 02:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551695137; cv=none; d=google.com; s=arc-20160816; b=m10OdcbvKjds/tRlZNgDD9OAMdFnZ7t9tb63niORojeIg+xWKTHz4XqM4DnPNxRI1D +l8SvtJvxaNw2n/PnHMd+8nqtADFmA0bX3+O3CXwQTWOOpq+tr7xwjlEB/zn7UPl2Nah Y1ih4c5M2UMayzt58rNdl2xFOKH1Wx1sklqdt+VYJNhai4AbezpIJrI1lV9y6H2/UzUM YaepJcl2MHM5YKGo2A6LOak9cKaaJkLdFSvYGLS18KqPscIFV7ezOxHb9McFokyqDLD3 6cP3g++ZLHP24tx6YDnKeAu1lklsNWJA6eXwYBsVVFYbeU7tr/3cLGWC4UgPBNz+VcwH YM3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AVZS9z5nlw9dMWw9jlmnThZKXfPQKQ18xfMwZi/dJuw=; b=CKQmeK8leiopIyEdyrgoXfTZCZIFrGVyi5x13bTaQC+zr5E7vBKSqUZVUEUo/LfE2O Fhp3ZLLorToqdIaaN4CIYU2zb2Fh8Gou8JdA8AfOWKx4Pa6ehCeK5yZpFlkqz2TmOEvR 7dtocFGjFVav7vR1kYNcJRLGAkpf2ctgX9rYLQCuIvU0taWrtsAptczdvSiMO1MoIVv+ a5kdnzrgnEg2BywW9l722MqHxVnPwBIUUhEvDEgam/oYz1MhaBEIJ7dJf+y+YwjsQJQd pyv8q2AWEol6xdTV6tgVBJdv2jH0E/VEhQ1ppnKUOBQXx3tFuOCJURaiRIppDSbzcdf7 /nwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=IutLse4u; 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 v6si4675659pgr.191.2019.03.04.02.25.21; Mon, 04 Mar 2019 02:25:37 -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=fail header.i=@verge.net.au header.s=mail header.b=IutLse4u; 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 S1726173AbfCDKYb (ORCPT + 99 others); Mon, 4 Mar 2019 05:24:31 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:39262 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfCDKYa (ORCPT ); Mon, 4 Mar 2019 05:24:30 -0500 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id CA79A25B74E; Mon, 4 Mar 2019 21:24:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1551695066; bh=T4VWP9pUoWbbuL67atuRtOPA0w+w3i3Vld6gseaDoe0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IutLse4uF4sxg3SheIN7qB0rz5LEVdQ07/xnctYgzGGU0p4qtHyvGENCsNpNiWCPZ IoN9F9M0rq+b/JY1qsD+3KanuOXfrqseIS3aRGitja7PKO+QKmioNAqL92F58Xh5br c3SDjEbg25QJwLqftZXTIooabNOMJDy3Mti8ZxkM= Received: by reginn.horms.nl (Postfix, from userid 7100) id 18A9594030D; Mon, 4 Mar 2019 11:24:24 +0100 (CET) Date: Mon, 4 Mar 2019 11:24:24 +0100 From: Simon Horman To: Geert Uytterhoeven Cc: Wen Yang , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Russell King , Linux ARM , Linux Kernel Mailing List , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, Michal Simek , Andreas =?utf-8?Q?F=C3=A4rber?= , Manivannan Sadhasivam , Dinh Nguyen , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Linus Walleij , avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, brendanhiggins@google.com, openbmc@lists.ozlabs.org, Wei Xu , Maxime Ripard , Chen-Yu Tsai , Catalin Marinas , Will Deacon , Magnus Damm , Linux-Renesas , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , linux-imx@nxp.com, wang.yi59@zte.com.cn Subject: Re: [PATCH 08/15] ARM: shmobile: fix a leaked reference by addingmissing of_node_put Message-ID: <20190304102423.bipib6frc6ma2ltv@verge.net.au> References: <1551430616-42014-1-git-send-email-wen.yang99@zte.com.cn> <1551430616-42014-8-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: Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 01, 2019 at 10:51:27AM +0100, Geert Uytterhoeven wrote: > On Fri, Mar 1, 2019 at 9:57 AM Wen Yang wrote: > > The call to of_get_next_child returns a node pointer with refcount > > incremented thus it must be explicitly decremented after the last > > usage. > > > > Detected by coccinelle with the following warnings: > > ./arch/arm/mach-shmobile/pm-rcar-gen2.c:77:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function. > > ./arch/arm/mach-shmobile/pm-rcar-gen2.c:85:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function. > > ./arch/arm/mach-shmobile/pm-rcar-gen2.c:90:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 66, but without a corresponding object release within this function. > > > > Signed-off-by: Wen Yang > > Reviewed-by: Geert Uytterhoeven Thanks, applied for v5.2.