summaryrefslogtreecommitdiff
path: root/fs/pipe.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-10-10 05:39:26 +0300
committerDavid Sterba <dsterba@suse.com>2019-10-11 22:27:51 +0300
commit4b654acdae850f48b8250b9a578a4eaa518c7a6f (patch)
tree570c6c50fec19a6b782e907787f7701911dd5f0b /fs/pipe.c
parent44db1216efe37bf670f8d1019cdc41658d84baf5 (diff)
downloadlinux-4b654acdae850f48b8250b9a578a4eaa518c7a6f.tar.xz
btrfs: block-group: Fix a memory leak due to missing btrfs_put_block_group()
In btrfs_read_block_groups(), if we have an invalid block group which has mixed type (DATA|METADATA) while the fs doesn't have MIXED_GROUPS feature, we error out without freeing the block group cache. This patch will add the missing btrfs_put_block_group() to prevent memory leak. Note for stable backports: the file to patch in versions <= 5.3 is fs/btrfs/extent-tree.c Fixes: 49303381f19a ("Btrfs: bail out if block group has different mixed flag") CC: stable@vger.kernel.org # 4.9+ Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/pipe.c')
0 files changed, 0 insertions, 0 deletions