Skip to content

Commit d245b2e

Browse files
committed
Merge tag 'io_uring-6.19-20251218' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull io_uring fix from Jens Axboe: "Just a single fix this week, for an issue with the calculation of the number of segments in the ublk kbuf import path" * tag 'io_uring-6.19-20251218' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux: io_uring: fix nr_segs calculation in io_import_kbuf
2 parents dd9b004 + 114ea9b commit d245b2e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

io_uring/rsrc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ static int io_import_kbuf(int ddir, struct iov_iter *iter,
10591059
if (count < imu->len) {
10601060
const struct bio_vec *bvec = iter->bvec;
10611061

1062+
len += iter->iov_offset;
10621063
while (len > bvec->bv_len) {
10631064
len -= bvec->bv_len;
10641065
bvec++;

0 commit comments

Comments
 (0)