Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2502004imb; Mon, 4 Mar 2019 06:50:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IZyRXf3OhqPxR+0JlAPzGaANzAl+FqOvFpgMUqOsjv6Js/IJiSl5EmA9DMHO8MRBUKXwylm X-Received: by 2002:a62:ed0c:: with SMTP id u12mr20964159pfh.88.1551711002774; Mon, 04 Mar 2019 06:50:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551711002; cv=none; d=google.com; s=arc-20160816; b=KK+IouzrVluZvmIDFRBkNRzLLOuvXtQ5jTye78HrGMWwKAVHOLbJoSfJlodEs+Frvt 6jjVHgBupOa8Kp0FvmJoV49klz1z8a8sn0Nwu4Yfjz+dIWUqvPPa1QWZJ5iN3IxLZR1R JL3QVHJSOujmsKcfIKgomzAEcBKOvY10p0ZeQwSwnz5iHFlSS8mjcRjxsTW9gJOmY1aB Yc0+N4rPYA7a1Huf/62/LCzOoLAgbWhl1k/jMlr5xinTV2fhIu+LEzDUB6PYlsTI6nbi 68CuiWC+R6pR4Uvwggssj8QZpkV4R91HIbtYs/8AY4WFvBRPGU8r3cJTuA+7cq8Tsqzm MoBg== 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=7yIMWJaNAXsz/dybOt/o3GiOtRuflR9Oj7pw9D+ZCQA=; b=td5TVvRWmmHFAvtQFxzDCZhBR1IMk76HhoNBLgwqwiI+rTzEDswnchTIQ7SGvjyZSZ +Bi2bwg2eewKni7LSRZow0FG7UFGg/RpLDIBfxLUfnH+pAxp7k3fVAePskqWP25czKrC ru+yFPynV1kFicVGZNxXllco5DMSj2r4Wqq96N5qvc6x2sEO5zspCMePA8wj5ShuOlPH DLaHYIENnRlz4a9+E74gBjBxk2hOjTq7JSeFNrKs+Cv166XgSDktlgy81/k62ei9JVGz gxCR5pp1uR28fe+FUrxeo/mXhoYP3KtYE36UO5xLiWg91ItAanTZgGvhLCfXbbvYMTCY ujbQ== 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 e3si5320036pfi.223.2019.03.04.06.49.47; Mon, 04 Mar 2019 06:50:02 -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 S1726950AbfCDOqU (ORCPT + 99 others); Mon, 4 Mar 2019 09:46:20 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34434 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbfCDOqU (ORCPT ); Mon, 4 Mar 2019 09:46:20 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 61FB1EBD; Mon, 4 Mar 2019 06:46:19 -0800 (PST) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3CB503F71D; Mon, 4 Mar 2019 06:46:13 -0800 (PST) Date: Mon, 4 Mar 2019 14:46:06 +0000 From: Sudeep Holla To: Wen Yang Cc: liviu.dudau@arm.com, lorenzo.pieralisi@arm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kgene@kernel.org, krzk@kernel.org, linux-samsung-soc@vger.kernel.org, michal.simek@xilinx.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, dinguyen@kernel.org, heiko@sntech.de, linux-rockchip@lists.infradead.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linus.walleij@linaro.org, avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, brendanhiggins@google.com, openbmc@lists.ozlabs.org, xuwei5@hisilicon.com, maxime.ripard@bootlin.com, wens@csie.org, catalin.marinas@arm.com, will.deacon@arm.com, horms@verge.net.au, magnus.damm@gmail.com, linux-renesas-soc@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com, wang.yi59@zte.com.cn Subject: Re: [PATCH 12/15] ARM: vexpress: fix a leaked reference by addingmissing of_node_put Message-ID: <20190304144606.GA7466@e107155-lin> References: <1551430616-42014-1-git-send-email-wen.yang99@zte.com.cn> <1551430616-42014-12-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: <1551430616-42014-12-git-send-email-wen.yang99@zte.com.cn> User-Agent: Mutt/1.9.4 (2018-02-28) 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 04:56:53PM +0800, 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-vexpress/dcscb.c:150:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 145, but without a corresponding object release within this function. > ./arch/arm/mach-vexpress/dcscb.c:160:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 145, but without a corresponding object release within this function. > ./arch/arm/mach-vexpress/dcscb.c:171:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 145, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Cc: Liviu Dudau > Cc: Sudeep Holla Looks good, assuming you want to take this as a series. Please shout if you want us to take this. Acked-by: Sudeep Holla -- Regards, Sudeep