projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1be832
)
da9052-battery: Fix a memory leak when unload the module
author
Axel Lin
<axel.lin@gmail.com>
Wed, 11 Jan 2012 07:44:37 +0000
(15:44 +0800)
committer
Anton Vorontsov
<anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:41:16 +0000
(20:41 +0400)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/da9052-battery.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/da9052-battery.c
b/drivers/power/da9052-battery.c
index 07d5b36535d51c587a94d45519ad6c905ed07c18..daf52a4b17bbf7abcc40d7c7d96fece7295ec082 100644
(file)
--- a/
drivers/power/da9052-battery.c
+++ b/
drivers/power/da9052-battery.c
@@
-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;
}