On Thu, Oct 10, 2019 at 10:39:26AM +0800, Qu Wenruo wrote: > In btrfs_read_block_groups(), if we have an invalid block group which > has mixed type (DATA|METADATA) while the fs doesn't have MIX_BGS > feature, we error out without freeing the block group cache. > > This patch will add the missing btrfs_put_block_group() to prevent > memory leak. > > Fixes: 49303381f19a ("Btrfs: bail out if block group has different mixed > flag") > Signed-off-by: Qu Wenruo <w...@suse.com>
Please send independent fixes out of feature patchsets so it does not get lost due to priorities fixes vs features. I'll add it to misc-next and queue for 5.4. Thanks.