diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-10-08 20:18:00 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2015-11-13 11:38:51 -0500 |
commit | b05a7851095c24ff62d5ffeb81baeffe7acd26a2 (patch) | |
tree | 0057a7ac8f3022006c4fd20247dc0a5b5c97cf72 /fs/orangefs/super.c | |
parent | 16742f2d7c1004bea5222a19428196b7125a41d1 (diff) |
orangefs: double iput() in case of d_make_root() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/super.c')
-rw-r--r-- | fs/orangefs/super.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index 9dee95293599..833af68c2227 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c | |||
@@ -403,10 +403,8 @@ static int pvfs2_fill_sb(struct super_block *sb, void *data, int silent) | |||
403 | 403 | ||
404 | /* allocates and places root dentry in dcache */ | 404 | /* allocates and places root dentry in dcache */ |
405 | root_dentry = d_make_root(root); | 405 | root_dentry = d_make_root(root); |
406 | if (!root_dentry) { | 406 | if (!root_dentry) |
407 | iput(root); | ||
408 | return -ENOMEM; | 407 | return -ENOMEM; |
409 | } | ||
410 | 408 | ||
411 | sb->s_export_op = &pvfs2_export_ops; | 409 | sb->s_export_op = &pvfs2_export_ops; |
412 | sb->s_root = root_dentry; | 410 | sb->s_root = root_dentry; |