diff options
author | Krzysztof Błaszkowski <kb@sysmikro.com.pl> | 2016-06-12 13:26:04 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2016-06-12 13:35:13 -0400 |
commit | f2fe2fa1fbad72e469f49da3716f176a9b53fb75 (patch) | |
tree | 514950548a93ceae287185581ebf8347d9551fbc /fs/freevxfs | |
parent | 263040a1e7cefa9fb916d6328fc045fdb30ed268 (diff) |
freevxfs: fix lack of inode initialization
There is nothing worse than just allocated inode without being
initialized _once().
Signed-off-by: Krzysztof Błaszkowski <kb@sysmikro.com.pl>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/freevxfs')
-rw-r--r-- | fs/freevxfs/vxfs_super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/freevxfs/vxfs_super.c b/fs/freevxfs/vxfs_super.c index e5eef1400d67..455ce5b77e9b 100644 --- a/fs/freevxfs/vxfs_super.c +++ b/fs/freevxfs/vxfs_super.c | |||
@@ -127,6 +127,7 @@ static struct inode *vxfs_alloc_inode(struct super_block *sb) | |||
127 | vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL); | 127 | vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL); |
128 | if (!vi) | 128 | if (!vi) |
129 | return NULL; | 129 | return NULL; |
130 | inode_init_once(&vi->vfs_inode); | ||
130 | return &vi->vfs_inode; | 131 | return &vi->vfs_inode; |
131 | } | 132 | } |
132 | 133 | ||