From: Axel Lin Date: Mon, 27 Sep 2010 07:07:12 +0000 (+0800) Subject: ds2760_battery: Add missing kfree(di) in ds2760_battery_remove() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a01bce6ad970d181797dffff5649e1e6989aa88b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ds2760_battery: Add missing kfree(di) in ds2760_battery_remove() Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index 4d3b27228a2e..b3c01c16a164 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; }