Explorar o código

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Axel Lin %!s(int64=14) %!d(string=hai) anos
pai
achega
a01bce6ad9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/power/ds2760_battery.c

+ 1 - 0
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;
 }