提交 8fdd8c49 编写于 作者: A Al Viro

isofs: inode leak on mount failure

d_alloc_root() failure leaves root inode leaked...
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 0ce8c010
......@@ -948,8 +948,11 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent)
/* get the root dentry */
s->s_root = d_alloc_root(inode);
if (!(s->s_root))
goto out_no_root;
if (!(s->s_root)) {
iput(inode);
error = -ENOMEM;
goto out_no_inode;
}
kfree(opt.iocharset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册