From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754715AbbCRA4T (ORCPT ); Tue, 17 Mar 2015 20:56:19 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:60451 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753576AbbCRA4Q (ORCPT ); Tue, 17 Mar 2015 20:56:16 -0400 From: "Rafael J. Wysocki" To: Nicolas Ferre Cc: Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, a.zummo@towertech.it, dan.carpenter@oracle.com, rtc-linux@googlegroups.com, kernel-janitors@vger.kernel.org, Boris BREZILLON , Alexandre Belloni , Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [PATCH] rtc: at91rm9200: double locking bug in at91_rtc_interrupt() Date: Wed, 18 Mar 2015 02:20:10 +0100 Message-ID: <3693407.VZtvM8ii87@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.19.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1426606690-18947-1-git-send-email-nicolas.ferre@atmel.com> References: <20150315104837.GC20691@mwanda> <1426606690-18947-1-git-send-email-nicolas.ferre@atmel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, March 17, 2015 04:38:10 PM Nicolas Ferre wrote: > From: Dan Carpenter > > There is a typo here so we deadlock. > > Fixes: dd1f1f391dd7 ('rtc: at91rm9200: rework wakeup and interrupt handling') > Signed-off-by: Dan Carpenter > Acked-by: Boris Brezillon > Reported-also-by: David Dueck > Signed-off-by: Nicolas Ferre > --- > Hi Andrew, > > Can you please take care of this fix for 4.0? > If you fee that I'd better take it myself please tell me. The commit being fixed went in through my tree, so I'll take this one if that's not a problem. > drivers/rtc/rtc-at91rm9200.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c > index b4f7744f6751..b283a1a573b3 100644 > --- a/drivers/rtc/rtc-at91rm9200.c > +++ b/drivers/rtc/rtc-at91rm9200.c > @@ -324,7 +324,7 @@ static irqreturn_t at91_rtc_interrupt(int irq, void *dev_id) > > ret = IRQ_HANDLED; > } > - spin_lock(&suspended_lock); > + spin_unlock(&suspended_lock); > > return ret; > } > -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.