All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Anton Vorontsov <cbouatmailru@gmail.com>
Subject: Re: [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in	jz_battery_remove()
Date: Tue, 28 Sep 2010 13:40:59 +0200	[thread overview]
Message-ID: <4CA1D44B.4080900@metafoo.de> (raw)
In-Reply-To: <1285571311.31251.3.camel@mola>

Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Acked-By: Lars-Peter Clausen <lars@metafoo.de>

> ---
>  drivers/power/jz4740-battery.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
> index 20c4b95..a8108a7 100644
> --- a/drivers/power/jz4740-battery.c
> +++ b/drivers/power/jz4740-battery.c
> @@ -383,6 +383,7 @@ static int __devexit jz_battery_remove(struct platform_device *pdev)
>  
>  	iounmap(jz_battery->base);
>  	release_mem_region(jz_battery->mem->start, resource_size(jz_battery->mem));
> +	kfree(jz_battery);
>  
>  	return 0;
>  }

Thanks
- Lars

  reply	other threads:[~2010-09-28 11:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-27  7:07 [PATCH 1/3] drivers/power: add missing kfree(di) in ds2760_battery_remove() Axel Lin
2010-09-27  7:08 ` [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove() Axel Lin
2010-09-28 11:40   ` Lars-Peter Clausen [this message]
2010-09-27  7:10 ` [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove() Axel Lin
2010-09-27 15:05   ` Mark Brown
2010-09-28 11:18     ` Anton Vorontsov

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=4CA1D44B.4080900@metafoo.de \
    --to=lars@metafoo.de \
    --cc=axel.lin@gmail.com \
    --cc=cbouatmailru@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.