summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-10-02 11:43:29 -0700
committerDavid S. Miller <davem@davemloft.net>2015-10-03 04:32:39 -0700
commit9cfd08601f49a4536e4407286b5f07b24293e474 (patch)
treed3469e3de327e5469b75aecfedeea31747bbc727 /net
parentba8e275a457397ab06f3567cf7bef0d78a43ae7e (diff)
downloadblackbird-op-linux-9cfd08601f49a4536e4407286b5f07b24293e474.tar.gz
blackbird-op-linux-9cfd08601f49a4536e4407286b5f07b24293e474.zip
tcp: remove BUG_ON() in tcp_check_req()
Once listener is lockless, its sk_state can change anytime. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_minisocks.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 897e34273ba3..9adf1e2c3170 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -578,8 +578,6 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
__be32 flg = tcp_flag_word(th) & (TCP_FLAG_RST|TCP_FLAG_SYN|TCP_FLAG_ACK);
bool paws_reject = false;
- BUG_ON(fastopen == (sk->sk_state == TCP_LISTEN));
-
tmp_opt.saw_tstamp = 0;
if (th->doff > (sizeof(struct tcphdr)>>2)) {
tcp_parse_options(skb, &tmp_opt, 0, NULL);
OpenPOWER on IntegriCloud