--- 25-akpm/fs/autofs4/inode.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-) diff -puN fs/autofs4/inode.c~2-autofs4-2.6.4-fill_super-20040405 fs/autofs4/inode.c --- 25/fs/autofs4/inode.c~2-autofs4-2.6.4-fill_super-20040405 2004-04-18 15:26:09.278280888 -0700 +++ 25-akpm/fs/autofs4/inode.c 2004-04-18 15:26:09.281280432 -0700 @@ -187,6 +187,7 @@ int autofs4_fill_super(struct super_bloc struct file * pipe; int pipefd; struct autofs_sb_info *sbi; + struct autofs_info *ino; int minproto, maxproto; sbi = (struct autofs_sb_info *) kmalloc(sizeof(*sbi), GFP_KERNEL); @@ -213,7 +214,11 @@ int autofs4_fill_super(struct super_bloc /* * Get the root inode and dentry, but defer checking for errors. */ - root_inode = autofs4_get_inode(s, autofs4_mkroot(sbi)); + ino = autofs4_mkroot(sbi); + if (!ino) + goto fail_free; + root_inode = autofs4_get_inode(s, ino); + kfree(ino); if (!root_inode) goto fail_free; _