From 9292585c67ddd76285f2610c0cbf6b61fe27f5db Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 5 Oct 2010 10:05:34 +0800 Subject: bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove() Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov --- drivers/power/bq27x00_battery.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/power') diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 3ec9c6a..eff0273 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c @@ -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); -- cgit v1.1