aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4/inode.c')
-rw-r--r--fs/autofs4/inode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c
index 692364e8ffc3..cd81f0836671 100644
--- a/fs/autofs4/inode.c
+++ b/fs/autofs4/inode.c
@@ -312,13 +312,11 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
312 struct autofs_sb_info *sbi; 312 struct autofs_sb_info *sbi;
313 struct autofs_info *ino; 313 struct autofs_info *ino;
314 314
315 sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); 315 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
316 if (!sbi) 316 if (!sbi)
317 goto fail_unlock; 317 goto fail_unlock;
318 DPRINTK("starting up, sbi = %p",sbi); 318 DPRINTK("starting up, sbi = %p",sbi);
319 319
320 memset(sbi, 0, sizeof(*sbi));
321
322 s->s_fs_info = sbi; 320 s->s_fs_info = sbi;
323 sbi->magic = AUTOFS_SBI_MAGIC; 321 sbi->magic = AUTOFS_SBI_MAGIC;
324 sbi->pipefd = -1; 322 sbi->pipefd = -1;