author: James Hogan <james.hogan@imgtec.com> 2013-03-27 10:47:14 +0000
committer: Al Viro <viro@zeniv.linux.org.uk> 2013-05-04 15:48:45 -0400
commit: 371fdab10033528c42f64fc244c30d67b15e529d
parent: 2b3b9bb03a9fb1e4c72947cc235771c6455ec7c9
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
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)
{
struct hostfs_inode_info *hi;
- hi = kzalloc(sizeof(*hi), GFP_KERNEL);
+ hi = kmalloc(sizeof(*hi), GFP_KERNEL);
if (hi == NULL)
return NULL;
hi->fd = -1;
+ hi->mode = 0;
inode_init_once(&hi->vfs_inode);
return &hi->vfs_inode;
}