From 61bb5a780dd4f50aa4dc859c28f1e8820d763b42 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 11 Jan 2012 15:44:37 +0800 Subject: [PATCH] da9052-battery: Fix a memory leak when unload the module Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov --- drivers/power/da9052-battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/da9052-battery.c b/drivers/power/da9052-battery.c index 07d5b36535d5..daf52a4b17bb 100644 --- a/drivers/power/da9052-battery.c +++ b/drivers/power/da9052-battery.c @@ -634,6 +634,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev) free_irq(bat->da9052->irq_base + irq, bat); } power_supply_unregister(&bat->psy); + kfree(bat); return 0; }