diff --git a/io_uring/net.c b/io_uring/net.c index 0af8a02df580f4933fdd42e8957eb8f63e59f369..7a5468cc905e74d2c2704aca1271ce8a318a1da8 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -956,7 +956,7 @@ static int io_sg_from_iter(struct sock *sk, struct sk_buff *skb, shinfo->nr_frags = frag; from->bvec += bi.bi_idx; from->nr_segs -= bi.bi_idx; - from->count = bi.bi_size; + from->count -= copied; from->iov_offset = bi.bi_bvec_done; skb->data_len += copied;