summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2016-04-21 15:44:11 -0700
committerAmit Pundir <amit.pundir@linaro.org>2016-05-19 12:32:41 +0530
commitcf84d75f72ae87d15b959967c9a0e1b74f686a6f (patch)
tree017d50c0a40b0aa0273905fa04a717d8eddc7aff /net/ipv4
parent99bbdddee077677da9acc8dd340ab206781f8614 (diff)
Revert "net: fix crash in tcp_nuke_addr()"
This reverts commit 08f7c4280cd5efe9e274240c42177f459431bac2.
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index edd1312ba73d..6c8a77eb6e57 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -3305,19 +3305,8 @@ restart:
sk_nulls_for_each(sk, node, &tcp_hashinfo.ehash[bucket].chain) {
struct inet_sock *inet = inet_sk(sk);
- if (sk->sk_state == TCP_TIME_WAIT) {
- /*
- * Sockets that are in TIME_WAIT state are
- * instances of lightweight inet_timewait_sock,
- * we should simply skip them (or we'll try to
- * access non-existing fields and crash).
- */
- continue;
- }
-
if (sysctl_ip_dynaddr && sk->sk_state == TCP_SYN_SENT)
continue;
-
if (sock_flag(sk, SOCK_DEAD))
continue;