From: Krzysztof Błaszkowski Date: Sun, 12 Jun 2016 17:26:04 +0000 (+0200) Subject: freevxfs: fix lack of inode initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2fe2fa1fbad72e469f49da3716f176a9b53fb75;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git freevxfs: fix lack of inode initialization There is nothing worse than just allocated inode without being initialized _once(). Signed-off-by: Krzysztof Błaszkowski Signed-off-by: Christoph Hellwig --- 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) vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL); if (!vi) return NULL; + inode_init_once(&vi->vfs_inode); return &vi->vfs_inode; }