Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752842Ab2HJFHC (ORCPT ); Fri, 10 Aug 2012 01:07:02 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:35924 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751328Ab2HJFHB (ORCPT ); Fri, 10 Aug 2012 01:07:01 -0400 MIME-Version: 1.0 In-Reply-To: <1343583999-30231-1-git-send-email-develkernel412222@gmail.com> References: <1343583999-30231-1-git-send-email-develkernel412222@gmail.com> Date: Fri, 10 Aug 2012 10:37:00 +0530 Message-ID: Subject: Re: [PATCH 1/2] lp8727_charger: free_irq when lp8727_register_psy fail From: Devendra Naga To: Anton Vorontsov , David Woodhouse , linux-kernel@vger.kernel.org Cc: Devendra Naga Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1431 Lines: 45 Sorry to ask this again, But will anybody please ACK , NACK or comment on this patch? Thanks, Devendra. On Sun, Jul 29, 2012 at 11:16 PM, Devendra Naga wrote: > actually the driver does a request_threaded_irq and after this it calls > lp8727_register_psy, and if it fails it doesn't free the irqs that it > registered to > > Signed-off-by: Devendra Naga > --- > drivers/power/lp8727_charger.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c > index d8b7578..699f0ef 100644 > --- a/drivers/power/lp8727_charger.c > +++ b/drivers/power/lp8727_charger.c > @@ -454,11 +454,13 @@ static int lp8727_probe(struct i2c_client *cl, const struct i2c_device_id *id) > ret = lp8727_register_psy(pchg); > if (ret) { > dev_err(pchg->dev, "power supplies register err: %d", ret); > - goto error; > + goto error_irq; > } > > return 0; > > +error_irq: > + free_irq(pchg->client->irq, pchg); > error: > kfree(pchg); > return ret; > -- > 1.7.9.5 > -- 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/