public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drivers/power: add missing kfree(di) in ds2760_battery_remove()
@ 2010-09-27  7:07 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-27  7:10 ` [PATCH 3/3] drivers/power: add missing kfree(wm831x_power) in wm831x_power_remove() Axel Lin
  0 siblings, 2 replies; 6+ messages in thread
From: Axel Lin @ 2010-09-27  7:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Anton Vorontsov

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/power/ds2760_battery.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c
index 4d3b272..b3c01c1 100644
--- a/drivers/power/ds2760_battery.c
+++ b/drivers/power/ds2760_battery.c
@@ -586,6 +586,7 @@ static int ds2760_battery_remove(struct platform_device *pdev)
 					  &di->set_charged_work);
 	destroy_workqueue(di->monitor_wqueue);
 	power_supply_unregister(&di->bat);
+	kfree(di);
 
 	return 0;
 }
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-28 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox