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

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

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 16742f2d
......@@ -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;
......
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