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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E064CC61DA4 for ; Sat, 11 Feb 2023 17:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8/kLIpgQCxx9bymR9oYna4QzB0XWeYocLZIgO9oIyRk=; b=KFCrm09jZqvy1L vopwnJMFxkoCpjOPSt1UYqBfuj8N6y7t0XYkOqat/ZTQ6xTqPkxu/sPhRrHaj11YsrcfUN7FQz28F /wWxmWQuQCM/BsUi/5RvWXP56GK5vIdbNFDnGLqtFjOSxAwfKDpQL3kfWIaAImUW+fTSzDaYYaBfr uofkdVEVQwlUIspPI/bE78PeMSRDFdkCCmauuUKgrx9hyO9Yl8Gr5c53Br22YFi6pyeTNvarW7gYa m9w3FbAd6ShdpLa5wD/ONmsh70DYouHQY13TNcVOwHGibSPAXZx0QqXX8msj+efbbAGkZslpTNTci IOn5SLntWBWhG6vlFaUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQu26-00A0jr-20; Sat, 11 Feb 2023 17:51:30 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQu22-00A0iV-PI for linux-arm-kernel@lists.infradead.org; Sat, 11 Feb 2023 17:51:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=DmpoQmaKwwi+psIOM8QBfPbTJ7OKW0zXKm8toU9HU/Y=; b=iDTanqFfc3ash2GoCfiseHxCSs Gok2p2AxarBLDCwiMcsMJ8Q+9vwnvhwwRSGvHJIO6qJcjafzxiwPE2vBSvCX2Wpy5nC/btOxisEqY Rixmj2zXuALnDholIrOOJBjW+T2Fub4f9QYgKjji3aEuswL6y6hejkit/QNKusbFlKAU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pQu1u-004iT2-J9; Sat, 11 Feb 2023 18:51:18 +0100 Date: Sat, 11 Feb 2023 18:51:18 +0100 From: Andrew Lunn To: Deepak R Varma Cc: Sebastian Hesselbarth , Gregory Clement , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Saurabh Singh Sengar , Praveen Kumar Subject: Re: [PATCH] soc: dove: release node before breaking child_of_node loop Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230211_095126_845440_DF92E1C6 X-CRM114-Status: UNSURE ( 6.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Feb 11, 2023 at 09:44:47PM +0530, Deepak R Varma wrote: > The iterator for_each_available_child_of_node() increments the refcount > of the child node it is processing. Release such a reference when the > loop needs to break due to an error during its execution. > Issue identified using for_each_child.cocci Coccinelle semantic patch. > > Signed-off-by: Deepak R Varma Looks reasonable. Reviewed-by: Andrew Lunn Andrew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel