aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/hostfs/hostfs_kern.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index f2372ef80850..32f35f187989 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -228,10 +228,11 @@ static struct inode *hostfs_alloc_inode(struct super_block *sb)
228{ 228{
229 struct hostfs_inode_info *hi; 229 struct hostfs_inode_info *hi;
230 230
231 hi = kzalloc(sizeof(*hi), GFP_KERNEL); 231 hi = kmalloc(sizeof(*hi), GFP_KERNEL);
232 if (hi == NULL) 232 if (hi == NULL)
233 return NULL; 233 return NULL;
234 hi->fd = -1; 234 hi->fd = -1;
235 hi->mode = 0;
235 inode_init_once(&hi->vfs_inode); 236 inode_init_once(&hi->vfs_inode);
236 return &hi->vfs_inode; 237 return &hi->vfs_inode;
237} 238}