Message ID | 20240129213023.1228125-3-magali.lemes@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,M,1/1] net: tls, update curr on splice as well | expand |
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index ce925f3a5249..63bce5e43589 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -952,6 +952,8 @@ static int tls_sw_sendmsg_splice(struct sock *sk, struct msghdr *msg, } sk_msg_page_add(msg_pl, page, part, off); + msg_pl->sg.copybreak = 0; + msg_pl->sg.curr = msg_pl->sg.end; sk_mem_charge(sk, part); *copied += part; try_to_copy -= part;