Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Fixes: 80ea09a ("vfs: factor out inode_insert5()") Signed-off-by: Al Viro <[email protected]>
- Loading branch information