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

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

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent fe3f6d09
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment