Revert "tcp_bpf: fix return value of tcp_bpf_sendmsg()"
This reverts commit 3434278976
.
This commit is contained in:
parent
a4bc5ebe94
commit
ac2d0b3ffb
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue