]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
freevxfs: fix lack of inode initialization
authorKrzysztof Błaszkowski <kb@sysmikro.com.pl>
Sun, 12 Jun 2016 17:26:04 +0000 (19:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 12 Jun 2016 17:35:13 +0000 (19:35 +0200)
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>
fs/freevxfs/vxfs_super.c

index e5eef1400d67df82dae7bd247b984c9e45a2a8d5..455ce5b77e9bf9eea279dccdf4a31a2a2154cd74 100644 (file)
@@ -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;
 }