Revert "net: fix iterating over hashtable in tcp_nuke_addr()"

This reverts commit 4747299b2c.
This commit is contained in:
Dmitry Shmidt 2016-04-21 15:44:25 -07:00
parent 9826b2ec83
commit 20de1c6bc4

View file

@ -3291,7 +3291,7 @@ int tcp_nuke_addr(struct net *net, struct sockaddr *addr)
return -EAFNOSUPPORT; 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 hlist_nulls_node *node;
struct sock *sk; struct sock *sk;
spinlock_t *lock = inet_ehash_lockp(&tcp_hashinfo, bucket); spinlock_t *lock = inet_ehash_lockp(&tcp_hashinfo, bucket);