summaryrefslogtreecommitdiffstats
path: root/fs/hfs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-07-24 15:01:55 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2018-08-03 16:03:32 -0400
commite950564b97fd0f541b02eb207685d0746f5ecf29 (patch)
tree48519b6c40bc193c70f8b8e60849da7c57f50226 /fs/hfs
parenta6cbedfa8783b42b9272c05297865bdb501005cb (diff)
downloadlinux-e950564b97fd0f541b02eb207685d0746f5ecf29.tar.bz2
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