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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EA55C61DA4 for ; Sat, 11 Feb 2023 17:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbjBKRv3 (ORCPT ); Sat, 11 Feb 2023 12:51:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjBKRvX (ORCPT ); Sat, 11 Feb 2023 12:51:23 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 037E21712 for ; Sat, 11 Feb 2023 09:51:23 -0800 (PST) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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