Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754829Ab1FBV0l (ORCPT ); Thu, 2 Jun 2011 17:26:41 -0400 Received: from utopia.booyaka.com ([72.9.107.138]:60388 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754311Ab1FBV0k (ORCPT ); Thu, 2 Jun 2011 17:26:40 -0400 Date: Thu, 2 Jun 2011 15:26:39 -0600 (MDT) From: Paul Walmsley To: Julia Lawall cc: kernel-janitors@vger.kernel.org, Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/10] arch/arm/mach-omap2/clock.c: add missing clk_put In-Reply-To: <1306948213-20767-9-git-send-email-julia@diku.dk> Message-ID: References: <1306948213-20767-9-git-send-email-julia@diku.dk> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 36 On Wed, 1 Jun 2011, Julia Lawall wrote: > From: Julia Lawall > > Add missing call to clk_put. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // > @r exists@ > expression e1,e2; > statement S; > @@ > > e1 = clk_get@p1(...); > ... when != e1 = e2 > when != clk_put(e1) > when any > if (...) { ... when != clk_put(e1) > when != if (...) { ... clk_put(e1) ... } > * return@p3 ...; > } else S > // > > Signed-off-by: Julia Lawall Acked-by: Paul Walmsley - Paul -- 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/