From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755233Ab1GAHPJ (ORCPT ); Fri, 1 Jul 2011 03:15:09 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:50490 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755183Ab1GAHPI (ORCPT ); Fri, 1 Jul 2011 03:15:08 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 98.234.237.12 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/SfiaXBfiDYzH53kbi+HV2 Date: Fri, 1 Jul 2011 00:15:05 -0700 From: Tony Lindgren To: Paul Walmsley Cc: Julia Lawall , kernel-janitors@vger.kernel.org, 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 Message-ID: <20110701071505.GB23145@atomide.com> References: <1306948213-20767-9-git-send-email-julia@diku.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Paul Walmsley [110602 14:22]: > 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 Adding this into devel-fixes branch. Tony