Revert "net: fix iterating over hashtable in tcp_nuke_addr()"
This reverts commit 4747299b2c
.
This commit is contained in:
parent
9826b2ec83
commit
20de1c6bc4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue