]> 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)
commit3c52b9a6c88cbffe77aa19e7452c27b504d92f42
treea8856860690ce4a1dbc37fd7c317f80fbe77e305
parent99c75daa938c6d593f6a18cd986448b728ac3404
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: 64cd1f2a72b7 ("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