Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3215867imb; Tue, 5 Mar 2019 04:01:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzYYxdqQ53d6DBKhUBf/tSw6+GVWtuClDEZWUffHe5CtVl0UhdItLvJWPeYRSHPckkJ7Oxc X-Received: by 2002:a62:76c9:: with SMTP id r192mr1500798pfc.251.1551787316328; Tue, 05 Mar 2019 04:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551787316; cv=none; d=google.com; s=arc-20160816; b=qqYoIctS9Dw4efbm4KfH3Q+sTHUAWIgXhC1fXkhI1osQQTF5FbRWl7BhssQhD7bnr2 Rj6MkqxKzZV9VUb1fHv8ER+CKdKjY6AFZY8jSh9JTMp9HlHwNe9DamqUwp/HutkBd/L/ uvmQqTSJb50whvqTSfDhBk0uPJFi+FmTtY9i4ewhKemM0lHsCIpinjc5CIbHLE9KtroM /GBYct8aOh6u7eF3iONeFxIHNjxcEEu5rzRt/02Dng+RievHoAVOp3Wt0bLxLWJBenaZ RkTKuWPi7aULNEo4PmwVE3mz40ThPz7Czcw5zFu+KZtXxdul9pVMoL/xE/HN5eGAQKzY NOLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:gfrom:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from; bh=TmMs75OnyMLoxdmM2vsPtY8RBFiDyaX3Kpt5tAFOVvE=; b=dwSKundeArRwtZP/OYHZKsurOhVbBHtsWuoQABW45MSV0pKihmd58wDyFQJ1J7rRHv ByML2/OL+Iqp/Dfx+x92wjr7jD0AnAFY7f5uULnkq7IK5Uf7v3jARHXqv6xV2FymVFtt n/bxYIejYT+wunGzsiKvv3NCDbJ47cYSHFanvq7o96VFbDWc5td9jhf51eU8rnfweofy yYYnIEN7M9jCNgFh2WpD4fSIkwTzSWQhj6DO1TVqooB5YJuX8YhtaWaC0bHEPLCdwjKU XtDS/RGwc1Yd5PWqHZKgGeEJr5NSsZy3ulsFrmYmMlxt990v/AS7cbBydFbVith+EDqb YG7A== 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 y1si7668667pgf.32.2019.03.05.04.01.38; Tue, 05 Mar 2019 04:01:56 -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 S1728009AbfCEL7c (ORCPT + 99 others); Tue, 5 Mar 2019 06:59:32 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:38583 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727653AbfCEL7c (ORCPT ); Tue, 5 Mar 2019 06:59:32 -0500 X-Originating-IP: 90.88.147.150 Received: from localhost (aaubervilliers-681-1-27-150.w90-88.abo.wanadoo.fr [90.88.147.150]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id D4C8FC0007; Tue, 5 Mar 2019 11:59:26 +0000 (UTC) From: maxime.ripard@bootlin.com Date: Tue, 5 Mar 2019 12:59:26 +0100 To: Wen Yang Cc: linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn, Chen-Yu Tsai , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 10/15] ARM: sunxi: fix a leaked reference by adding missing of_node_put Message-ID: <20190305115926.za332f63piwpnxux@flea> References: <1551785646-46173-1-git-send-email-wen.yang99@zte.com.cn> <1551785646-46173-10-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ffjjji2iwbywqv7a" Content-Disposition: inline In-Reply-To: <1551785646-46173-10-git-send-email-wen.yang99@zte.com.cn> gFrom: Maxime Ripard User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ffjjji2iwbywqv7a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 05, 2019 at 07:34:01PM +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. >=20 > Detected by coccinelle with the following warnings: > ./arch/arm/mach-sunxi/platsmp.c:55:2-8: ERROR: missing of_node_put; acqui= red a node pointer with refcount incremented on line 46, but without a corr= esponding object release within this function. > ./arch/arm/mach-sunxi/platsmp.c:138:2-8: ERROR: missing of_node_put; acqu= ired a node pointer with refcount incremented on line 129, but without a co= rresponding object release within this function. >=20 > Signed-off-by: Wen Yang > Reviewed-by: Florian Fainelli > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Cc: Russell King > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org Applied, thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ffjjji2iwbywqv7a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXH5kngAKCRDj7w1vZxhR xX4qAQC3g5Y+G6BrB/fhaiogrHS0yAs7jzz4grg3O2c5NOKMGgEAi5UIlA6a/t8H YETwNXj9AssBJxxxv3JBNOxTSF0AdQs= =Scxs -----END PGP SIGNATURE----- --ffjjji2iwbywqv7a--