Skip to content

Commit 9292585

Browse files
AxelLinenomsg
authored andcommitted
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>
1 parent fe3f6d0 commit 9292585

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/bq27x00_battery.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ static int bq27x00_battery_remove(struct i2c_client *client)
418418

419419
power_supply_unregister(&di->bat);
420420

421+
kfree(di->bus);
421422
kfree(di->bat.name);
422423

423424
mutex_lock(&battery_mutex);

0 commit comments

Comments
 (0)