Skip to content

Commit

Permalink
freevxfs: fix lack of inode initialization
Browse files Browse the repository at this point in the history
There is nothing worse than just allocated inode without being
initialized _once().

Signed-off-by: Krzysztof Błaszkowski <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
kb-01 authored and Christoph Hellwig committed Jun 12, 2016
1 parent 263040a commit f2fe2fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/freevxfs/vxfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static struct inode *vxfs_alloc_inode(struct super_block *sb)
vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL);
if (!vi)
return NULL;
inode_init_once(&vi->vfs_inode);
return &vi->vfs_inode;
}

Expand Down

0 comments on commit f2fe2fa

Please sign in to comment.