ext2: make sure that partially set up inodes won't be returned by ext2_iget()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -611,8 +611,7 @@ fail_drop:
|
||||
dquot_drop(inode);
|
||||
inode->i_flags |= S_NOQUOTA;
|
||||
clear_nlink(inode);
|
||||
unlock_new_inode(inode);
|
||||
iput(inode);
|
||||
discard_new_inode(inode);
|
||||
return ERR_PTR(err);
|
||||
|
||||
fail:
|
||||
|
||||
Reference in New Issue
Block a user