ext4: release buffer when checksum failed
authorGuo Chao <yan@linux.vnet.ibm.com>
Tue, 29 Jan 2013 02:23:24 +0000 (21:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jan 2013 02:23:24 +0000 (21:23 -0500)
commitd5ac77730516028f3ceda825abefac9a1153b138
treee42b54a9dd95eaca6026ea350d0a3241da6d4072
parentb06acd38a44127b382fa53e49878f7a2b70af6f2
ext4: release buffer when checksum failed

Commit b0336e8d (ext4: calculate and verify checksums of directory
leaf blocks) and commit dbe89444 (ext4: Calculate and verify checksums
for htree nodes) forget to release buffer when checksum failed, at
some places.

Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/ext4/dir.c
fs/ext4/namei.c