Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a01bce6a authored by Axel Lin's avatar Axel Lin Committed by Anton Vorontsov
Browse files

ds2760_battery: Add missing kfree(di) in ds2760_battery_remove()

parent 7cfbb294
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}