diff options
| author | Dmitry Shmidt <dimitrysh@google.com> | 2016-04-21 15:44:25 -0700 |
|---|---|---|
| committer | Amit Pundir <amit.pundir@linaro.org> | 2016-05-19 12:32:41 +0530 |
| commit | d8c5b6f8507d171050d318f3126cf2c43cee1dd5 (patch) | |
| tree | 0175a8f62fe7f31d6228c916b27af4b212bee93b /net/ipv4/tcp.c | |
| parent | cf84d75f72ae87d15b959967c9a0e1b74f686a6f (diff) | |
Revert "net: fix iterating over hashtable in tcp_nuke_addr()"
This reverts commit 4747299b2c8e8778927b3df0501023d76fe4f2d5.
Diffstat (limited to 'net/ipv4/tcp.c')
| -rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 6c8a77eb6e57..0d01284271b4 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -3295,7 +3295,7 @@ int tcp_nuke_addr(struct net *net, struct sockaddr *addr) return -EAFNOSUPPORT; } - for (bucket = 0; bucket <= tcp_hashinfo.ehash_mask; bucket++) { + for (bucket = 0; bucket < tcp_hashinfo.ehash_mask; bucket++) { struct hlist_nulls_node *node; struct sock *sk; spinlock_t *lock = inet_ehash_lockp(&tcp_hashinfo, bucket); |
