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: http://git.maquefel.me/?a=commitdiff_plain;h=a01bce6ad970d181797dffff5649e1e6989aa88b;p=linux.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 4d3b27228a2e0..b3c01c16a1640 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; }