From: Theodore Ts'o Date: Sun, 25 Jun 2006 12:47:51 +0000 (-0700) Subject: [PATCH] ext3: fix memory leak when the journal file is corrupted X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8f1c6227a0bc9b1e3a7e87cd31f650a909f647f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] ext3: fix memory leak when the journal file is corrupted Signed-off-by: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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, default: jbd_debug(3, "Unrecognised magic %d, end of scan.\n", blocktype); + brelse(bh); goto done; } }