diff options
author | Chengguang Xu <cgxu519@zoho.com.cn> | 2019-06-16 23:08:01 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-06-19 18:27:38 +0200 |
commit | edb895d3bfbab558df2149947a3f245ddf42292e (patch) | |
tree | e4626863ce67e235bbdc9240f9a78a89ad25d13a /fs/ext2 | |
parent | fdbd3e8c9ffdf9c75a1cfc5951abcf141d68f8d9 (diff) |
ext2: add missing brelse() in ext2_iget()
Add missing brelse() on error path of ext2_iget().
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 8d91f5dab0dc..e680478866db 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -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; } |