projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac1b7c3
)
jffs2: fix another potential leak on error path in scan.c
author
David Woodhouse
<David.Woodhouse@intel.com>
Tue, 23 Jun 2009 00:34:19 +0000
(
01:34
+0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Tue, 23 Jun 2009 00:34:19 +0000
(
01:34
+0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/scan.c
patch
|
blob
|
history
diff --git
a/fs/jffs2/scan.c
b/fs/jffs2/scan.c
index 7515e73e2bfbd0729069b0ec0f16df2da74f71a6..696686cc206e1d807df1b6706a4a1a54f3f6b2bf 100644
(file)
--- a/
fs/jffs2/scan.c
+++ b/
fs/jffs2/scan.c
@@
-130,9
+130,9
@@
int jffs2_scan_medium(struct jffs2_sb_info *c)
if (jffs2_sum_active()) {
s = kzalloc(sizeof(struct jffs2_summary), GFP_KERNEL);
if (!s) {
- kfree(flashbuf);
JFFS2_WARNING("Can't allocate memory for summary\n");
- return -ENOMEM;
+ ret = -ENOMEM;
+ goto out;
}
}