summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-09-03 17:11:09 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2014-09-14 02:13:39 (GMT)
commitf77ced6637a18d4f543458a112881776a6b7fa8c (patch)
tree463fc9c5970252940d08b2976889a33b8e7a5e88
parent7ec62d421bdf29cb31101ae2689f7f3a9906289a (diff)
downloadlinux-f77ced6637a18d4f543458a112881776a6b7fa8c.tar.xz
[fix] lustre: d_make_root() does iput() on dentry allocation failure
double-free is a bad thing Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/staging/lustre/lustre/llite/llite_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c
index 0367f5a..0c59e26 100644
--- a/drivers/staging/lustre/lustre/llite/llite_lib.c
+++ b/drivers/staging/lustre/lustre/llite/llite_lib.c
@@ -568,7 +568,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
if (sb->s_root == NULL) {
CERROR("%s: can't make root dentry\n",
ll_get_fsname(sb, NULL, 0));
- GOTO(out_root, err = -ENOMEM);
+ GOTO(out_lock_cn_cb, err = -ENOMEM);
}
sbi->ll_sdev_orig = sb->s_dev;