projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
263040a
)
freevxfs: fix lack of inode initialization
author
Krzysztof Błaszkowski
<kb@sysmikro.com.pl>
Sun, 12 Jun 2016 17:26:04 +0000
(19:26 +0200)
committer
Christoph 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/freevxfs/vxfs_super.c
b/fs/freevxfs/vxfs_super.c
index e5eef1400d67df82dae7bd247b984c9e45a2a8d5..455ce5b77e9bf9eea279dccdf4a31a2a2154cd74 100644
(file)
--- 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;
}