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-Tag: firefly_0821_release~7613^2~3630^2~9 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a01bce6ad970d181797dffff5649e1e6989aa88b;p=firefly-linux-kernel-4.4.55.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; }