Skip to content

Commit 7cce7fc

Browse files
committed
Merge branch 'for-6.11/block' into for-next
* for-6.11/block: block: set bip_vcnt correctly
2 parents d62873f + 3991657 commit 7cce7fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

block/bio-integrity.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ static int bio_integrity_copy_user(struct bio *bio, struct bio_vec *bvec,
276276

277277
bip->bip_flags |= BIP_INTEGRITY_USER | BIP_COPY_USER;
278278
bip->bip_iter.bi_sector = seed;
279+
bip->bip_vcnt = nr_vecs;
279280
return 0;
280281
free_bip:
281282
bio_integrity_free(bio);
@@ -297,6 +298,7 @@ static int bio_integrity_init_user(struct bio *bio, struct bio_vec *bvec,
297298
bip->bip_flags |= BIP_INTEGRITY_USER;
298299
bip->bip_iter.bi_sector = seed;
299300
bip->bip_iter.bi_size = len;
301+
bip->bip_vcnt = nr_vecs;
300302
return 0;
301303
}
302304

0 commit comments

Comments
 (0)