linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Devendra Naga <develkernel412222@gmail.com>
To: Anton Vorontsov <cbou@mail.ru>,
	David Woodhouse <dwmw2@infradead.org>,
	linux-kernel@vger.kernel.org
Cc: Devendra Naga <develkernel412222@gmail.com>
Subject: Re: [PATCH 1/2] lp8727_charger: free_irq when lp8727_register_psy fail
Date: Fri, 10 Aug 2012 10:37:00 +0530	[thread overview]
Message-ID: <CA+C2MxT+yDQCFKn1nCmJjmGJ+-XOOGmCrmzUNr9iko0kUAXYyQ@mail.gmail.com> (raw)
In-Reply-To: <1343583999-30231-1-git-send-email-develkernel412222@gmail.com>

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
<develkernel412222@gmail.com> 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 <develkernel412222@gmail.com>
> ---
>  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
>

      parent reply	other threads:[~2012-08-10  5:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-29 17:46 [PATCH 1/2] lp8727_charger: free_irq when lp8727_register_psy fail Devendra Naga
2012-08-10  4:35 ` Devendra
2012-08-19 20:50   ` Anton Vorontsov
2012-08-23 16:52     ` Devendra Naga
2012-08-30 11:41       ` Kim, Milo
2012-08-10  5:07 ` Devendra Naga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+C2MxT+yDQCFKn1nCmJjmGJ+-XOOGmCrmzUNr9iko0kUAXYyQ@mail.gmail.com \
    --to=develkernel412222@gmail.com \
    --cc=cbou@mail.ru \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).