diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index e49e29288049a6bcd598e9bbf29067a61281b1f2..72c745682996f0146d45356d913f14bf05245fb1 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -10000,6 +10000,7 @@ int btrfs_read_block_groups(struct btrfs_fs_info *info) btrfs_err(info, "bg %llu is a mixed block group but filesystem hasn't enabled mixed block groups", cache->key.objectid); + btrfs_put_block_group(cache); ret = -EINVAL; goto error; }