Skip to content

Commit

Permalink
da9052-battery: Fix a memory leak when unload the module
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Mar 26, 2012
1 parent e1be832 commit 61bb5a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/da9052-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev)
free_irq(bat->da9052->irq_base + irq, bat);
}
power_supply_unregister(&bat->psy);
kfree(bat);

return 0;
}
Expand Down

0 comments on commit 61bb5a7

Please sign in to comment.