Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3778390imb; Tue, 5 Mar 2019 19:40:37 -0800 (PST) X-Google-Smtp-Source: APXvYqytHk+KEENBnho9J/qLRs2XzmrikLKzqKnJPP3h9ehMHRQs7fcehePG1XBGai/orZVD+o0o X-Received: by 2002:a63:d70a:: with SMTP id d10mr4383330pgg.286.1551843637776; Tue, 05 Mar 2019 19:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551843637; cv=none; d=google.com; s=arc-20160816; b=f3YbQDLxK3MVVl/n9P/yoi3OE5bafsEkimIXCkxxInpfZmKpThTtBJhPreUKnSLFlo APKPP06Us/7Ic233KG/mdvCsFY8C+3u35OY4ihpSLHgeP5dA6p+JPm81wG0Wu4I77kyx I4V1Ue7WIEQtsNAAxO4u5zxUfbTRrEB4gtcODrFvM8BOMEChzZH/3CYfw/coov46YH3W zmJnaUJnUjBpAIb1VlpMRZBWZS3Ye2KWj/SLTH6iDP5gak8lqOR+36J+4P7KdxTHmYcu SFx53AICD/cbDZBWWI/tMYfy+fSQhkp1F4CpbCyzEYs4vrPj7A9c2SphDOnEUCWhz666 VDkA== 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:dkim-signature; bh=2XmBWlLfpgfBhnxS4XxTw6azaKTcdoN89v3mt0T5qLs=; b=n1Pb1T4TrsEuJmWxpZy48rcpfJ6PRK4m3DLEtYcp0X5DvbYPYppVyjsyh2X4K7uTRn d+UnpQ0bjREYf7CTjWrl/UpVBUmmDSsfgXvCZZU7XsAXlptFVmmxqd+skFOwhZG/qLEb nxNwAXph9h/0/cNWPqt4d2uOv4uddqOgE5ZW4mOHGLoaytPqYL0DRHBU4SluXXNrxrKG AEcPXQH+uzo0jY1GpM4u6aCPSzHdVmIwc5GCHzfx0AB4RNNwlagA+Twqohm/ihZd5CxK bmgUJz5uIirqafCpo3dmsPBEUjKW94kKzYCkBVLYrPAiqOIgambzQYDsEKB+xvteOgG9 JUPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="DHW/YBNj"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si449206pgs.147.2019.03.05.19.40.22; Tue, 05 Mar 2019 19:40: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=pass header.i=@kernel.org header.s=default header.b="DHW/YBNj"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728866AbfCFC7N (ORCPT + 99 others); Tue, 5 Mar 2019 21:59:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:53022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfCFC7N (ORCPT ); Tue, 5 Mar 2019 21:59:13 -0500 Received: from dragon (61-216-91-114.HINET-IP.hinet.net [61.216.91.114]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0379220675; Wed, 6 Mar 2019 02:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551841152; bh=osM66By3LY4Eke2CyQeQ2vwup2tO7woBRnpW5XQ+K/I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DHW/YBNjUJHMy0n7XmcZ3BzmhBu00WykSe7gH6MTiJK8jjeL+QXK+MH6hNig5hr9j P2G8Yqn26KoBa0j6cgryJI0rAaMgEXzVRko+zP42MM8s9rjiqh/U/icEYFV5t5d9xk Io9v0MOMkkW7Zdl2+As8y8GvJolFz22oglqqXxbU= Date: Wed, 6 Mar 2019 10:58:04 +0800 From: Shawn Guo To: Wen Yang Cc: linux-kernel@vger.kernel.org, wang.yi59@zte.com.cn, Russell King , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 05/15] ARM: imx51: fix a leaked reference by adding missing of_node_put Message-ID: <20190306025803.GG26041@dragon> References: <1551785646-46173-1-git-send-email-wen.yang99@zte.com.cn> <1551785646-46173-5-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: <1551785646-46173-5-git-send-email-wen.yang99@zte.com.cn> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 05, 2019 at 07:33:56PM +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-imx/mach-imx51.c:64:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 57, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Reviewed-by: Florian Fainelli > Cc: Russell King > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: NXP Linux Team > Cc: Lucas Stach > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > v2->v1: add a missing space between "adding" and "missing" I fixed it against v1 which I applied on my branch. Shawn