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

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

bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove()

parent fe3f6d09
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)

	power_supply_unregister(&di->bat);

	kfree(di->bus);
	kfree(di->bat.name);

	mutex_lock(&battery_mutex);