diff options
author | Guo Chao <yan@linux.vnet.ibm.com> | 2013-01-06 23:38:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 08:46:23 -0800 |
commit | 4a2113ba833fdc4d1800ad9c7fafaad23bfb4b54 (patch) | |
tree | 9a0e068dda2be0b0e6fc01f5c5496e9505410dc8 /fs | |
parent | d8403e29336c9c1ea90d2ed16b1534482979f1aa (diff) |
ext4: release buffer in failed path in dx_probe()
commit 0ecaef0644973e9006fdbc6974301047aaff9bc6 upstream.
If checksum fails, we should also release the buffer
read from previous iteration.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index ca770306ccb..8fa23b4f1a4 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -725,7 +725,7 @@ dx_probe(const struct qstr *d_name, struct inode *dir, ext4_warning(dir->i_sb, "Node failed checksum"); brelse(bh); *err = ERR_BAD_DX_DIR; - goto fail; + goto fail2; } set_buffer_verified(bh); |