* [PATCH] drivers/power: add missing kfree(di->bus) in bq27x00_battery_remove()
@ 2010-10-05 2:05 Axel Lin
2010-10-06 13:46 ` Anton Vorontsov
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2010-10-05 2:05 UTC (permalink / raw)
To: linux-kernel; +Cc: Anton Vorontsov, Rodolfo Giometti
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/power/bq27x00_battery.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c
index 3ec9c6a..eff0273 100644
--- a/drivers/power/bq27x00_battery.c
+++ b/drivers/power/bq27x00_battery.c
@@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)
power_supply_unregister(&di->bat);
+ kfree(di->bus);
kfree(di->bat.name);
mutex_lock(&battery_mutex);
--
1.7.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers/power: add missing kfree(di->bus) in bq27x00_battery_remove()
2010-10-05 2:05 [PATCH] drivers/power: add missing kfree(di->bus) in bq27x00_battery_remove() Axel Lin
@ 2010-10-06 13:46 ` Anton Vorontsov
0 siblings, 0 replies; 2+ messages in thread
From: Anton Vorontsov @ 2010-10-06 13:46 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Rodolfo Giometti
On Tue, Oct 05, 2010 at 10:05:34AM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
Applied, thanks.
> drivers/power/bq27x00_battery.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c
> index 3ec9c6a..eff0273 100644
> --- a/drivers/power/bq27x00_battery.c
> +++ b/drivers/power/bq27x00_battery.c
> @@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)
>
> power_supply_unregister(&di->bat);
>
> + kfree(di->bus);
> kfree(di->bat.name);
>
> mutex_lock(&battery_mutex);
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-06 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-05 2:05 [PATCH] drivers/power: add missing kfree(di->bus) in bq27x00_battery_remove() Axel Lin
2010-10-06 13:46 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®