git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OMAP: PM: SmartReflex: Fix possible memory leak
[pandora-kernel.git]
/
arch
/
arm
/
mach-omap2
/
smartreflex.c
diff --git
a/arch/arm/mach-omap2/smartreflex.c
b/arch/arm/mach-omap2/smartreflex.c
index
d7deadf
..
5f429b9
100644
(file)
--- a/
arch/arm/mach-omap2/smartreflex.c
+++ b/
arch/arm/mach-omap2/smartreflex.c
@@
-834,7
+834,8
@@
static int __init omap_sr_probe(struct platform_device *pdev)
if (!pdata) {
dev_err(&pdev->dev, "%s: platform data missing\n", __func__);
- return -EINVAL;
+ ret = -EINVAL;
+ goto err_free_devinfo;
}
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);