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

Commit b05a7851 authored by Al Viro's avatar Al Viro Committed by Mike Marshall
Browse files

orangefs: double iput() in case of d_make_root() failure

parent 16742f2d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -403,10 +403,8 @@ static int pvfs2_fill_sb(struct super_block *sb, void *data, int silent)

	/* allocates and places root dentry in dcache */
	root_dentry = d_make_root(root);
	if (!root_dentry) {
		iput(root);
	if (!root_dentry)
		return -ENOMEM;
	}

	sb->s_export_op = &pvfs2_export_ops;
	sb->s_root = root_dentry;