diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-04 00:00:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-04 00:00:17 -0400 |
commit | 6f41617bf23a17d9cb7cc6ca8161534f05f80293 (patch) | |
tree | 2844d8d197a61b0603e31f09613e3272635dd1cc /net/ipv4/tcp_input.c | |
parent | 7bdaae270cb55d40b7fb73744c7e00a7108ee5b6 (diff) | |
parent | cec4de302c5ff2c5eb3bfcb0c4845a095f5149b9 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor conflict in net/core/rtnetlink.c, David Ahern's bug fix in 'net'
overlapped the renaming of a netlink attribute in net-next.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index bf1aac315490..188980c58f87 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -6002,11 +6002,13 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb) | |||
6002 | if (th->fin) | 6002 | if (th->fin) |
6003 | goto discard; | 6003 | goto discard; |
6004 | /* It is possible that we process SYN packets from backlog, | 6004 | /* It is possible that we process SYN packets from backlog, |
6005 | * so we need to make sure to disable BH right there. | 6005 | * so we need to make sure to disable BH and RCU right there. |
6006 | */ | 6006 | */ |
6007 | rcu_read_lock(); | ||
6007 | local_bh_disable(); | 6008 | local_bh_disable(); |
6008 | acceptable = icsk->icsk_af_ops->conn_request(sk, skb) >= 0; | 6009 | acceptable = icsk->icsk_af_ops->conn_request(sk, skb) >= 0; |
6009 | local_bh_enable(); | 6010 | local_bh_enable(); |
6011 | rcu_read_unlock(); | ||
6010 | 6012 | ||
6011 | if (!acceptable) | 6013 | if (!acceptable) |
6012 | return 1; | 6014 | return 1; |