diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e7045117042b..f91c0d84bb17 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2919,7 +2919,7 @@ try_onemore: if (!S_ISDIR(root->i_mode) || !root->i_blocks || !root->i_size) { iput(root); err = -EINVAL; - goto free_node_inode; + goto free_stats; } sb->s_root = d_make_root(root); /* allocate root dentry */