Revert "tcp_bpf: fix return value of tcp_bpf_sendmsg()"

This reverts commit 3434278976.
This commit is contained in:
Ksawlii 2024-11-24 00:23:42 +01:00
parent a4bc5ebe94
commit ac2d0b3ffb

View file

@ -511,7 +511,7 @@ out_err:
err = sk_stream_error(sk, msg->msg_flags, err);
release_sock(sk);
sk_psock_put(sk, psock);
return copied > 0 ? copied : err;
return copied ? copied : err;
}
static int tcp_bpf_sendpage(struct sock *sk, struct page *page, int offset,