1 jbd2: free bh when descriptor block checksum fails
3 From: "Darrick J. Wong" <darrick.wong@oracle.com>
5 Free the buffer head if the journal descriptor block fails checksum
8 This is the jbd2 port of the e2fsprogs patch "e2fsck: free bh on csum
9 verify error in do_one_pass".
11 Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
12 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
13 Reviewed-by: Eric Sandeen <sandeen@redhat.com>
14 Cc: stable@vger.kernel.org
16 fs/jbd2/recovery.c | 1 +
17 1 file changed, 1 insertion(+)
20 diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c
21 index 9b329b5..bcbef08 100644
22 --- a/fs/jbd2/recovery.c
23 +++ b/fs/jbd2/recovery.c
24 @@ -525,6 +525,7 @@ static int do_one_pass(journal_t *journal,
25 !jbd2_descr_block_csum_verify(journal,