Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Błaszkowski and committed by
Christoph Hellwig
f2fe2fa1 263040a1

+1
+1
fs/freevxfs/vxfs_super.c
··· 127 127 vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL); 128 128 if (!vi) 129 129 return NULL; 130 + inode_init_once(&vi->vfs_inode); 130 131 return &vi->vfs_inode; 131 132 } 132 133