Commit 8fdd8c49 authored by Al Viro's avatar Al Viro

isofs: inode leak on mount failure

d_alloc_root() failure leaves root inode leaked...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0ce8c010
...@@ -948,8 +948,11 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent) ...@@ -948,8 +948,11 @@ static int isofs_fill_super(struct super_block *s, void *data, int silent)
/* get the root dentry */ /* get the root dentry */
s->s_root = d_alloc_root(inode); s->s_root = d_alloc_root(inode);
if (!(s->s_root)) if (!(s->s_root)) {
goto out_no_root; iput(inode);
error = -ENOMEM;
goto out_no_inode;
}
kfree(opt.iocharset); kfree(opt.iocharset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment