]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iomap: iomap_bio_read_folio_range_sync is missing a call to bio_uninit
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Aug 2026 12:43:58 +0000 (05:43 -0700)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Aug 2026 07:22:39 +0000 (09:22 +0200)
Which could leak blkg references.

Fixes: c03cea42149d ("iomap: add initial support for writes without buffer heads")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260804124404.737145-3-hch@lst.de
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/iomap/bio.c

index 311199344b282fedde4cd4360508880f0176c307..24969b71a96583ebd80204e754c52cc3223c2853 100644 (file)
@@ -175,5 +175,6 @@ int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter,
                        error = fs_bio_integrity_verify(&bio, sector, len);
                fs_bio_integrity_free(&bio);
        }
+       bio_uninit(&bio);
        return error;
 }