提交 9292585c 编写于 作者: A Axel Lin 提交者: Anton Vorontsov

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

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册