Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1889597imm; Sat, 16 Jun 2018 05:25:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIaatxWrbYD56dTd+WyCpcB8rpNGB4OQZpkgmv+QbCbRwctGUJjIQGFxvhKtOlILpEm+Wxm X-Received: by 2002:a62:3d05:: with SMTP id k5-v6mr6169875pfa.122.1529151942139; Sat, 16 Jun 2018 05:25:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529151942; cv=none; d=google.com; s=arc-20160816; b=faquqxfBIUG9hBc/UdwTHQqM/Q9z16omGJwncPDyqbQjL4PNnTFX3RX3MTwbb5LzX8 B2duhxy/JXDeBN3dbklz0dOzDOHDUXXRIYSgLrqGTKjJhYZctO4s8hR1TCR4YcMbk11r geF+zNB1gvog8lMIouJN/Zko+oonoHVNJlR5SyGdvI3XZG0DqXLJ64yiVkbvVTdymhAf qYHuD71FrPCcGM2yUxGqZ6Lbu54eIEmvfkzEjO5bLp/mXf9kyjDdy5OLKOFsmz2hYh6H Vv9ftnSpzAH70bnXJJBoEitEeqczFAn4xa6V/4cdlkCKh941ASxEj0q0Fz+io34w0S18 OmfQ== 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 :arc-authentication-results; bh=Xp7aZmHaDru3QJ59mc7bNM0JdN8t+/+jkNciEzw2ALE=; b=D79pw0RHA+tuzXD80X32Dr2F+IvU4eBuJgcyl7UHQdIAimempshPEftzx/dUxiz9qL 6X49thAKn7YfOPjh3h+R6R/BUQOJ0NMuZJlbB+tVNMoTZvJMY/apiIABFPLO7PSeAjJF ktcxiwePgIke6cDwETcUPIQqskQPJyAFi5QN+IDXlR8kgieGCLSA7FA1uWDQcJic72Wv RheJleehLn3AhiT98iycLlBFWfD6uHnkLw2fN7UsS88bAxZXzqPrj5GV94tEQ80KYbY5 ILZoYxz3y7YY54xmZih9XBzTQYc3CW7yVORAX7g7ai/BUujGeU+xITk6bo3EJHZGQ84i oR3w== 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 b9-v6si8322624pgs.139.2018.06.16.05.25.12; Sat, 16 Jun 2018 05:25:42 -0700 (PDT) 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 S932788AbeFPMYi (ORCPT + 99 others); Sat, 16 Jun 2018 08:24:38 -0400 Received: from gloria.sntech.de ([95.129.55.99]:48060 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932681AbeFPMYh (ORCPT ); Sat, 16 Jun 2018 08:24:37 -0400 Received: from ip5f5a8448.dynamic.kabel-deutschland.de ([95.90.132.72] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fUAFV-0006iW-V5; Sat, 16 Jun 2018 14:24:10 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Julia Lawall Cc: 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 5/5] drm/rockchip: lvds: add missing of_node_put Date: Sat, 16 Jun 2018 14:24:09 +0200 Message-ID: <1948755.WvuARZiism@diego> In-Reply-To: <1527102436-13447-6-git-send-email-Julia.Lawall@lip6.fr> References: <1527102436-13447-1-git-send-email-Julia.Lawall@lip6.fr> <1527102436-13447-6-git-send-email-Julia.Lawall@lip6.fr> 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 Hi Julia, Am Mittwoch, 23. Mai 2018, 21:07:16 CEST 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 thanks for catching this. I've added a "Fixes"-tag and applied the patch to drm-misc-next Thanks Heiko