Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3396623imu; Mon, 14 Jan 2019 02:10:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN6NrCetC359aCBRT76c9y6g+Mwhzp3LVSyRXUM4/kImK2VqOpPtbaGbD4WVfGIDsXwTmXuf X-Received: by 2002:a17:902:bf44:: with SMTP id u4mr11377577pls.5.1547460636454; Mon, 14 Jan 2019 02:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547460636; cv=none; d=google.com; s=arc-20160816; b=T8YagKTMHQpq2PJL9iQShvqF0WZM2OoxNXLRC1wFfb+v9BKkyv3Xv2unvjuOj/vsf5 kD5oEGiloSYuj/c2vWE5e798JnbbCaw7ldvi/uYcp6mQhbucaKojqvKhqmExpl2xP33V kzyh/pdd9INOQp618JkiduxBnXUaafH4h2pxj0tpHlsKlbCKiwAPEm8mPk8fd+CUAmoH u1Xy5tw0CBfpV8X82eQjXDDxcntengwH6qyQeQHx8BMwBoxuL1bgQY5YuCr8maiPiBKu XYMUrffA6/tuHqePpgUNjiCaybv4fMTg7X3IN9QkW8ajXBZw9fTDuTHV+frIACmM7d+U g9sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=M2ynHkYdE/dH7msf6DvNjX8OEfehNDqpnt7GAsY4V7g=; b=CLzmguSU3SVgtPT8m5DGGH2xjdBqqUhXyo98WhMBeTSjmffZUK85uHc3qw1EXMrW72 kFLr5tDTUwhmnIJmWJAJjZtAqqflAt9ckv+P0jxvdNl4w4YQQ1BgbIvBMSfk/nVoq8c1 2yVt0j+GAqsYc7G08DoBb+DzuwENbn7EGKRMqQSnC/DRPYI8qoioYgoeVIeLzdPMw6eO Msm7+K0oLSSfUWzMfRH/ZKswBbnuAGehdoSFd98pLmN9SORP6E6x+bbs6dCYuaRxifCT Kwe5rTi5gvRCO1Bgub7c1FJDgF4B+Zf3yX7YK7Jo8hDho8etKdkvf/SH5I6IpEzwHl20 wcBg== 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 r28si7568980pgm.317.2019.01.14.02.10.20; Mon, 14 Jan 2019 02:10:36 -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 S1726525AbfANKJO (ORCPT + 99 others); Mon, 14 Jan 2019 05:09:14 -0500 Received: from gloria.sntech.de ([185.11.138.130]:50168 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbfANKJN (ORCPT ); Mon, 14 Jan 2019 05:09:13 -0500 Received: from p5b1272c6.dip0.t-ipconnect.de ([91.18.114.198] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gizB4-0004xw-Hk; Mon, 14 Jan 2019 11:09:06 +0100 From: Heiko Stuebner To: Daniel Vetter Cc: Julia Lawall , Sandy Huang , kernel-janitors@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] drm/rockchip: add missing of_node_put Date: Mon, 14 Jan 2019 11:09:05 +0100 Message-ID: <10335721.Px6jQUZGiA@phil> In-Reply-To: <20190114100556.GC10517@phenom.ffwll.local> References: <1547369264-24831-1-git-send-email-Julia.Lawall@lip6.fr> <3397932.PmTvevuZIG@phil> <20190114100556.GC10517@phenom.ffwll.local> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 14. Januar 2019, 11:05:56 CET schrieb Daniel Vetter: > On Sun, Jan 13, 2019 at 07:48:49PM +0100, Heiko Stuebner wrote: > > Am Sonntag, 13. Januar 2019, 09:47:43 CET schrieb Julia Lawall: > > > The device node iterators perform an of_node_get on each iteration, so a > > > jump out of the loop requires an of_node_put. > > > > > > The semantic patch that fixes this problem is as follows > > > (http://coccinelle.lip6.fr): > > > > > > // > > > @@ > > > expression root,e; > > > local idexpression child; > > > iterator name for_each_child_of_node; > > > @@ > > > > > > for_each_child_of_node(root, child) { > > > ... when != of_node_put(child) > > > when != e = child > > > + of_node_put(child); > > > ? break; > > > ... > > > } > > > ... when != child > > > // > > > > > > Signed-off-by: Julia Lawall > > > > I've added a fixes+stable tag and applied it to drm-misc-fixes > > All of them or just this one here? These cleanup patches have a high > chance of falling through cracks, so taking them all usually works out > better ... That is the only one I got, so right now I only applied this one in my inbox. Weekend and such resulted in me not going looking for other ones. Heiko