]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/recovery.c
e2fsck: free bh when descriptor block checksum fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Sep 2014 01:46:10 +0000 (21:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 Sep 2014 01:46:22 +0000 (21:46 -0400)
commitc10700f9748e54748f88a22554da3dca4b7fc234
tree42c7286af00ac5856c46e2a3bac2fffd925a8de3
parent7ef1b8b4248ab099f4ac4c921fe8c0def831f255
e2fsck: free bh when descriptor block checksum fails

Free the buffer head if the journal descriptor block fails checksum
verification.  This has been patched before (see "e2fsck: free bh on
csum verify error in do_one_pass") but apparently the patch was never
committed to jbd2 in the kernel, so when we resync'd the recovery code
with 3.16, the bug came back.  Sigh.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
e2fsck/recovery.c