diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-24 15:01:55 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-08-03 16:03:32 -0400 |
commit | e950564b97fd0f541b02eb207685d0746f5ecf29 (patch) | |
tree | 48519b6c40bc193c70f8b8e60849da7c57f50226 /fs/hfs | |
parent | a6cbedfa8783b42b9272c05297865bdb501005cb (diff) |
vfs: don't evict uninitialized inode
iput() ends up calling ->evict() on new inode, which is not yet initialized
by owning fs. So use destroy_inode() instead.
Add to sb->s_inodes list only if inode is not in I_CREATING state (meaning
that it wasn't allocated with new_inode(), which already does the
insertion).
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 80ea09a002bf ("vfs: factor out inode_insert5()")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions