From 8a99541095b5dd098d1f227967e4b0b19c4a3f43 Mon Sep 17 00:00:00 2001 From: John Garry Date: Fri, 20 Feb 2026 14:32:33 +0000 Subject: [PATCH] block: Correct comment on bio_alloc_clone() Correct the comment that the source bio must not be freed before the clone. Signed-off-by: John Garry --- block/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bio.c b/block/bio.c index d80d5d26804e..33b2362d09a5 100644 --- a/block/bio.c +++ b/block/bio.c @@ -900,7 +900,7 @@ static int __bio_clone(struct bio *bio, struct bio *bio_src, gfp_t gfp) * Allocate a new bio that is a clone of @bio_src. The caller owns the returned * bio, but not the actual data it points to. * - * The caller must ensure that the return bio is not freed before @bio_src. + * The caller must ensure that @bio_src is not freed before the returned bio. */ struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src, gfp_t gfp, struct bio_set *bs)