bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
parent
fe3f6d097a
commit
9292585c67
1 changed files with 1 additions and 0 deletions
|
@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)
|
||||||
|
|
||||||
power_supply_unregister(&di->bat);
|
power_supply_unregister(&di->bat);
|
||||||
|
|
||||||
|
kfree(di->bus);
|
||||||
kfree(di->bat.name);
|
kfree(di->bat.name);
|
||||||
|
|
||||||
mutex_lock(&battery_mutex);
|
mutex_lock(&battery_mutex);
|
||||||
|
|
Loading…
Reference in a new issue