diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2019-01-23 08:49:44 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-03-06 04:58:06 +0100 |
commit | 025cdb166c1e6a142fdec46bcd0873e00f0be0fd (patch) | |
tree | 51e8c9eda0f25f5c2d15fbd3af884516936b2027 | |
parent | f2fs: fix to document inline_xattr_size option (diff) | |
download | linux-025cdb166c1e6a142fdec46bcd0873e00f0be0fd.tar.xz linux-025cdb166c1e6a142fdec46bcd0873e00f0be0fd.zip |
f2fs: jump to label 'free_node_inode' when failing from d_make_root()
When sb->s_root is NULL dput() will do nothing,
so jump to label 'free_node_inode' instead of lable
'free_root_inode' when failing from d_make_root().
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e382be2f10f9..83bbe7424fc1 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3322,7 +3322,7 @@ try_onemore: sb->s_root = d_make_root(root); /* allocate root dentry */ if (!sb->s_root) { err = -ENOMEM; - goto free_root_inode; + goto free_node_inode; } err = f2fs_register_sysfs(sbi); |