projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8b244
)
regulator: tps65910: Fix a memory leak in tps65910_probe error path
author
Axel Lin
<axel.lin@gmail.com>
Sun, 10 Jul 2011 10:52:07 +0000
(18:52 +0800)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Fri, 22 Jul 2011 10:37:15 +0000
(11:37 +0100)
Fix a memory leak if chip id is not matched.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/tps65910-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps65910-regulator.c
b/drivers/regulator/tps65910-regulator.c
index
55dd4e6
..
b07a664
100644
(file)
--- a/
drivers/regulator/tps65910-regulator.c
+++ b/
drivers/regulator/tps65910-regulator.c
@@
-903,6
+903,7
@@
static __devinit int tps65910_probe(struct platform_device *pdev)
info = tps65911_regs;
default:
pr_err("Invalid tps chip version\n");
+ kfree(pmic);
return -ENODEV;
}