projects/linux·commit b35233e7

Merge tag 'for-6.14/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm

b35233e7 · Linus Torvalds <[email protected]> · 2025-03-14 11:31:57 -10:00

Pull device mapper fix from Mikulas Patocka:

 - dm-flakey: fix memory corruption in optional corrupt_bio_byte feature

* tag 'for-6.14/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
  dm-flakey: Fix memory corruption in optional corrupt_bio_byte feature
Commit
b35233e7bfa04045388967d3dc219e80cc88bc74
Parents
580b2032 · 57e9417f

Merge commit. Changes below are compared with the first parent: 580b2032.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/md/dm-flakey.cmodified+1−1View file

drivers/md/dm-flakey.c

View file
diff --git a/drivers/md/dm-flakey.c b/drivers/md/dm-flakey.c
index 731467d..b690905 100644
--- a/drivers/md/dm-flakey.c
+++ b/drivers/md/dm-flakey.c
@@ -426,7 +426,7 @@ static struct bio *clone_bio(struct dm_target *ti, struct flakey_c *fc, struct b
if (!clone)
return NULL;
- bio_init(clone, fc->dev->bdev, bio->bi_inline_vecs, nr_iovecs, bio->bi_opf);
+ bio_init(clone, fc->dev->bdev, clone->bi_inline_vecs, nr_iovecs, bio->bi_opf);
clone->bi_iter.bi_sector = flakey_map_sector(ti, bio->bi_iter.bi_sector);
clone->bi_private = bio;