projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98d8618
)
regulator: max8660: Fix a memory leak due to missing devm_kzalloc conversion
author
Axel Lin
<axel.lin@gmail.com>
Tue, 17 Apr 2012 10:06:50 +0000
(18:06 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 17 Apr 2012 13:44:32 +0000
(14:44 +0100)
commit 4d26f7 "regulator: max8660: Use devm_kzalloc()" missed to
replace kzalloc by devm_kzalloc. Fix it.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8660.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max8660.c
b/drivers/regulator/max8660.c
index 9997cfbc34711022f55c2ceeefff750ccd085a44..5d568175cc271397e2500e67b6e87904318b1a25 100644
(file)
--- a/
drivers/regulator/max8660.c
+++ b/
drivers/regulator/max8660.c
@@
-370,7
+370,7
@@
static int __devinit max8660_probe(struct i2c_client *client,
return -EINVAL;
}
- max8660 =
kzalloc(
sizeof(struct max8660) +
+ max8660 =
devm_kzalloc(&client->dev,
sizeof(struct max8660) +
sizeof(struct regulator_dev *) * MAX8660_V_END,
GFP_KERNEL);
if (!max8660)