]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/tcp_bpf.c
Merge mainline/master into arm/fixes
[linux.git] / net / ipv4 / tcp_bpf.c
index 8a56e09cfb0ed3ebf03795ae4b5d1eb3f04221ba..e38705165ac9bd48910348169fc9904c41fb48dc 100644 (file)
@@ -301,7 +301,7 @@ EXPORT_SYMBOL_GPL(tcp_bpf_sendmsg_redir);
 static int tcp_bpf_send_verdict(struct sock *sk, struct sk_psock *psock,
                                struct sk_msg *msg, int *copied, int flags)
 {
-       bool cork = false, enospc = msg->sg.start == msg->sg.end;
+       bool cork = false, enospc = sk_msg_full(msg);
        struct sock *sk_redir;
        u32 tosend, delta = 0;
        int ret;