From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B38BDC43381 for ; Tue, 5 Mar 2019 11:59:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 834E5206DD for ; Tue, 5 Mar 2019 11:59:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cfI5UtJa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 834E5206DD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Fg3cePIwAdUIj4sVViNzpeP2Imsbs+GDLl62ekj64mE=; b=cfI5UtJaNpKNmentNLzvsxndZ T9cbS1ZvwQ9amGXlSx9Ryp3qJlxieu/IhgmoiaDQ5p7swzujWOZpMT5P2BBfyjOT3MyC9X+hEzZ8C 34KYGOpEgmn9JZJ82OpYhHhPjLjyc7avJYEfvE7jA7lIfBgofoZhB+rAtCWArZdx68e+h7u7C2vVE hantOFP6ZKXGd0ARH7IuGjI8vSp8Y7R/3C6dO8yzN1G9YOxNBdT5rUdzTFA4xvPjKeN4sSqeCcRbx xv2+DWagVhEGn2sJd8LBpRYvZI60XsScfLEJERFT+G3ISexrBt+aEcmuzYl7m62/lkHuBmsZwM8/L MsJfZE/nA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h18jH-00083P-NP; Tue, 05 Mar 2019 11:59:27 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h18jD-000833-Sv for linux-arm-kernel@lists.infradead.org; Tue, 05 Mar 2019 11:59:25 +0000 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 relay4-d.mail.gandi.net (Postfix) with ESMTPSA id B3CC0E000F; Tue, 5 Mar 2019 11:59:12 +0000 (UTC) Date: Tue, 5 Mar 2019 12:59:12 +0100 From: Maxime Ripard To: Wen Yang Subject: Re: [PATCH 4/4] ARM: sunxi: fix a leaked reference by adding missing of_node_put Message-ID: <20190305115912.bprjr3hitdmfnmrw@flea> References: <1551785577-45896-1-git-send-email-wen.yang99@zte.com.cn> <1551785577-45896-4-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 In-Reply-To: <1551785577-45896-4-git-send-email-wen.yang99@zte.com.cn> User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190305_035924_086194_31153DA0 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wang.yi59@zte.com.cn, Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King Content-Type: multipart/mixed; boundary="===============3635854619581057799==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3635854619581057799== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6n24zqffo6umuxrf" Content-Disposition: inline --6n24zqffo6umuxrf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 05, 2019 at 07:32:57PM +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/mc_smp.c:110:1-7: ERROR: missing of_node_put; acqui= red a node pointer with refcount incremented on line 97, but without a corr= esponding object release within this functio > ./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 > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Cc: Russell King > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org (open list) Applied, thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --6n24zqffo6umuxrf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXH5kjwAKCRDj7w1vZxhR xXVHAQCkRxUJXNH1lFYqq9xtlK3xypnBlI7nbhk00kVaqHqYdAEA25YEiTvLkRx+ 64RYnAyJIE6c5C6VfueDRE/n0WiIlgw= =Gs6K -----END PGP SIGNATURE----- --6n24zqffo6umuxrf-- --===============3635854619581057799== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============3635854619581057799==--