diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2019-01-23 15:49:44 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-03-05 19:58:06 -0800 |
commit | 025cdb166c1e6a142fdec46bcd0873e00f0be0fd (patch) | |
tree | 51e8c9eda0f25f5c2d15fbd3af884516936b2027 /fs | |
parent | 7321dd97b5bb1801da6881141e56308e593a69f5 (diff) | |
download | linux-025cdb166c1e6a142fdec46bcd0873e00f0be0fd.tar.gz linux-025cdb166c1e6a142fdec46bcd0873e00f0be0fd.tar.bz2 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>
Diffstat (limited to 'fs')
-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); |