From accb6624e383872e7703974a5d5826755fb27032 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 4 Aug 2026 05:43:58 -0700 Subject: [PATCH] iomap: iomap_bio_read_folio_range_sync is missing a call to bio_uninit Which could leak blkg references. Fixes: c03cea42149d ("iomap: add initial support for writes without buffer heads") Signed-off-by: Christoph Hellwig Link: https://patch.msgid.link/20260804124404.737145-3-hch@lst.de Reviewed-by: "Darrick J. Wong" Reviewed-by: Anuj Gupta Signed-off-by: Christian Brauner (Amutable) --- fs/iomap/bio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/iomap/bio.c b/fs/iomap/bio.c index 311199344b28..24969b71a965 100644 --- a/fs/iomap/bio.c +++ b/fs/iomap/bio.c @@ -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; }