diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 89a347243e9a..01d1cb6081fc 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2911,7 +2911,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) 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 */