Message ID | ff0fc8c44f205453a203e88676942507339f6829.camel@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/bio.c b/block/bio.c index 53e0f0a..c22e76f 100644 --- a/block/bio.c +++ b/block/bio.c @@ -913,7 +913,7 @@ int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter) bv[0].bv_offset += offset; bv[0].bv_len -= offset; if (diff) - bv[bio->bi_vcnt - 1].bv_len -= diff; + bio->bi_io_vec[bio->bi_vcnt - 1].bv_len -= diff; iov_iter_advance(iter, size); return 0;