]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/zoned.c
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)
commit2963457829decf0c824a443238d251151ed18ff5
treea8856860690ce4a1dbc37fd7c317f80fbe77e305
parenta4527e1853f8ff6e0b7c2dadad6268bd38427a31
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: 7db1c5d14dcd ("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