]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: fix a leaked bioc in read_zone_info
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Jun 2022 16:03:19 +0000 (18:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Jul 2022 17:13:32 +0000 (19:13 +0200)
commit60fb0e615e5c86923f68c2f7e522e028fa66b538
treea8856860690ce4a1dbc37fd7c317f80fbe77e305
parent02db653c181988156895bf23615fa12edd9be0e0
btrfs: zoned: fix a leaked bioc in read_zone_info

The bioc would leak on the normal completion path and also on the RAID56
check (but that one won't happen in practice due to the invalid
combination with zoned mode).

Fixes: ca593da8f389 ("btrfs: zoned: support dev-replace in zoned filesystems")
CC: stable@vger.kernel.org # 5.16+
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
[ update changelog ]
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c