Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);