Skip to content

Commit

Permalink
[JFFS2] Fix error-path leak in summary scan
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Choudhary <amit2030@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Amit Choudhary authored and David Woodhouse committed Jan 2, 2007
1 parent aba54da commit 85de3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/jffs2/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ 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;
}
Expand Down

0 comments on commit 85de3d9

Please sign in to comment.