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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue