Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3289524imb; Tue, 5 Mar 2019 05:54:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwPUJIxdCh12HnX2tErtUWWe57PxIj/K7xMI5uWh66xO5+bOA2fnxd3bZDbTdidUI5IFqi+ X-Received: by 2002:a62:1851:: with SMTP id 78mr2007033pfy.206.1551794086966; Tue, 05 Mar 2019 05:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551794086; cv=none; d=google.com; s=arc-20160816; b=lzmtONMZcGUCfDNktVOMysYhjBtj8bXVo88Vbsry/Ln2CqsQXGUMuSJpnoZvYI0ZJX IW4OqxfjrIi5UxsQqGU03Rbrm8NZfpBvGnkX+jeMkZopNnPJhRv25vKGa+di17d59NHM 9pCQ/fA5i3128EZ34mAJgoZQRbkPvBaokm9Xm1PmHHt0efiTJefzRe+SaYN6Jbt0tLyM CQPm788AEqvu9OGspq5DbxF+kWw+nCt5op/ToHZLEAbrPkCCLf0qBIevfy7kpguFV3qa Y+gLl/rFXDkpc66r5dfZxi2E6qL7/G9rpg7KvuFhY7Ri4iP51jRLT9bd6+CUm94fKQtg w9bg== 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=ltGMHB35OL9Wjn4OVHaKsdhzzkp3yycvm5P6mLj0HUs=; b=jP09gI/FAzCDW5IY6ow2gyMez0pplD07w5qhZZJITlFgruapy7snMzIVU+Nm0VzcRv TfByPBRc7oe1PWbmneUNrQjkD6NeiOUpEeUYwQiznkfh6w5L5heilAk1HgTaU3psntHo 1NilgqrcB6INn4sK+zza23dSeEIOR0Io7oZmvLwcLq6OJdz9aWmVZfSRRhT7P8tKLs/0 8AW+3o5RHD+eFsKznvxUl7GIAJD/2qGE0bJMzpNBOiZLhWaDDdT1EtorVlEKnalFxX/x /oD2tKpd3Yldw0chfIOm6HUTMVUfQO80cpURskM2ZXJSjafqB20ip6AF3suW9UHp+21c d9CA== 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 q63si8638379pfb.154.2019.03.05.05.54.31; Tue, 05 Mar 2019 05:54:46 -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 S1727985AbfCEL7Q (ORCPT + 99 others); Tue, 5 Mar 2019 06:59:16 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38389 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbfCEL7P (ORCPT ); Tue, 5 Mar 2019 06:59:15 -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 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 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 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 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6n24zqffo6umuxrf" Content-Disposition: inline In-Reply-To: <1551785577-45896-4-git-send-email-wen.yang99@zte.com.cn> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --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--