Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754629AbbLVMo3 (ORCPT ); Tue, 22 Dec 2015 07:44:29 -0500 Received: from mail-ob0-f176.google.com ([209.85.214.176]:33795 "EHLO mail-ob0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752838AbbLVMoZ (ORCPT ); Tue, 22 Dec 2015 07:44:25 -0500 MIME-Version: 1.0 In-Reply-To: <1450715988-4770-2-git-send-email-Julia.Lawall@lip6.fr> References: <1450715988-4770-1-git-send-email-Julia.Lawall@lip6.fr> <1450715988-4770-2-git-send-email-Julia.Lawall@lip6.fr> Date: Tue, 22 Dec 2015 13:44:24 +0100 Message-ID: Subject: Re: [PATCH 1/5] pinctrl-tegra: add missing of_node_put From: Linus Walleij To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Stephen Warren , Thierry Reding , Alexandre Courbot , "linux-gpio@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 597 Lines: 17 On Mon, Dec 21, 2015 at 5:39 PM, Julia Lawall wrote: > for_each_child_of_node performs an of_node_get on each iteration, so a > return from the loop requires an of_node_put. > > A simplified version of the semantic patch that fixes this problem is as > follows (http://coccinelle.lip6.fr): Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/