]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jbd/recovery.c
[PATCH] ext3: fix memory leak when the journal file is corrupted
[linux-2.6-omap-h63xx.git] / fs / jbd / recovery.c
index 80d7f53fd0a759dec8a019c60bb96badf7f927bb..de5bafb4e8534db59d76f86bf6352821a6458012 100644 (file)
@@ -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;
                }
        }