diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-16 18:29:56 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-08-03 16:03:31 -0400 |
commit | 2e5afe54e0cd6fce79b51ca547caf08a990ad56d (patch) | |
tree | e1216c8896876b5f8e5e8a2dd990eacbb3236956 /fs/ext2/ialloc.c | |
parent | 5c1a68a358f94b9ac2e33183327bc04f207feed2 (diff) |
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>
Diffstat (limited to 'fs/ext2/ialloc.c')
-rw-r--r-- | fs/ext2/ialloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 6484199b35d1..5c3d7b7e4975 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c | |||
@@ -611,8 +611,7 @@ fail_drop: | |||
611 | dquot_drop(inode); | 611 | dquot_drop(inode); |
612 | inode->i_flags |= S_NOQUOTA; | 612 | inode->i_flags |= S_NOQUOTA; |
613 | clear_nlink(inode); | 613 | clear_nlink(inode); |
614 | unlock_new_inode(inode); | 614 | discard_new_inode(inode); |
615 | iput(inode); | ||
616 | return ERR_PTR(err); | 615 | return ERR_PTR(err); |
617 | 616 | ||
618 | fail: | 617 | fail: |