aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/recovery.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-06-25 08:47:51 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:01:07 -0400
commite8f1c6227a0bc9b1e3a7e87cd31f650a909f647f (patch)
tree7cca3fbb4f03f054d9f6886e0062f84f11cc9dfb /fs/jbd/recovery.c
parentf16fdadba28add689b567cf03c21dd6dec8e43be (diff)
[PATCH] ext3: fix memory leak when the journal file is corrupted
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jbd/recovery.c')
-rw-r--r--fs/jbd/recovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jbd/recovery.c b/fs/jbd/recovery.c
index 80d7f53fd0a7..de5bafb4e853 100644
--- a/fs/jbd/recovery.c
+++ b/fs/jbd/recovery.c
@@ -531,6 +531,7 @@ static int do_one_pass(journal_t *journal,
531 default: 531 default:
532 jbd_debug(3, "Unrecognised magic %d, end of scan.\n", 532 jbd_debug(3, "Unrecognised magic %d, end of scan.\n",
533 blocktype); 533 blocktype);
534 brelse(bh);
534 goto done; 535 goto done;
535 } 536 }
536 } 537 }