projects
/
GitHub
/
LineageOS
/
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:
201ab53
)
mtd: fsl_upm: fix a memory leak in fun_chip_init error path
author
Axel Lin
<axel.lin@gmail.com>
Thu, 30 Jun 2011 11:53:09 +0000
(19:53 +0800)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:14 +0000
(15:02 +0300)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
drivers/mtd/nand/fsl_upm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/fsl_upm.c
b/drivers/mtd/nand/fsl_upm.c
index da92fed9f27b25b1c81b936efcb3b3c847c52642..b4f3cc9f32fbe5614ad8d1a0a1cbe905ee01d3f5 100644
(file)
--- a/
drivers/mtd/nand/fsl_upm.c
+++ b/
drivers/mtd/nand/fsl_upm.c
@@
-196,6
+196,8
@@
static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
ret = mtd_device_parse_register(&fun->mtd, NULL, &ppdata, NULL, 0);
err:
of_node_put(flash_np);
+ if (ret)
+ kfree(fun->mtd.name);
return ret;
}