jbd2: free bh when descriptor block checksum fails
commitdbcd57f790014d6b892525f24f699321a866ac3c
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 16 Sep 2014 18:43:09 +0000 (16 14:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:29 +0000 (14 10:10 -0800)
treee0bbb945baa6ff1fc96b3d1fe0bce0a2e04648d3
parent7de4d736135ecbb1f03548746c13f774bbbf06bd
jbd2: free bh when descriptor block checksum fails

commit 064d83892e9ba547f7d4eae22cbca066d95210ce upstream.

Free the buffer head if the journal descriptor block fails checksum
verification.

This is the jbd2 port of the e2fsprogs patch "e2fsck: free bh on csum
verify error in do_one_pass".

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/recovery.c