Commit edb895d3 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jan Kara

ext2: add missing brelse() in ext2_iget()

Add missing brelse() on error path of ext2_iget().
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarChengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent fdbd3e8c
......@@ -1473,6 +1473,7 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino)
else
ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl);
if (i_size_read(inode) < 0) {
brelse(bh);
ret = -EFSCORRUPTED;
goto bad_inode;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment