Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932797AbbLVMsi (ORCPT ); Tue, 22 Dec 2015 07:48:38 -0500 Received: from mail-ob0-f170.google.com ([209.85.214.170]:33303 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752320AbbLVMsg (ORCPT ); Tue, 22 Dec 2015 07:48:36 -0500 MIME-Version: 1.0 In-Reply-To: <1450715988-4770-5-git-send-email-Julia.Lawall@lip6.fr> References: <1450715988-4770-1-git-send-email-Julia.Lawall@lip6.fr> <1450715988-4770-5-git-send-email-Julia.Lawall@lip6.fr> Date: Tue, 22 Dec 2015 13:48:35 +0100 Message-ID: Subject: Re: [PATCH 4/5] pinctrl: rockchip: add missing of_node_put From: Linus Walleij To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Heiko Stuebner , "linux-gpio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "open list:ARM/Rockchip SoC..." , "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: 621 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 with Heiko's review tag. 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/