projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf84d75
)
Revert "net: fix iterating over hashtable in tcp_nuke_addr()"
author
Dmitry Shmidt
<dimitrysh@google.com>
Thu, 21 Apr 2016 22:44:25 +0000
(15:44 -0700)
committer
Amit Pundir
<amit.pundir@linaro.org>
Thu, 19 May 2016 07:02:41 +0000
(12:32 +0530)
This reverts commit
4747299b2c8e8778927b3df0501023d76fe4f2d5
.
net/ipv4/tcp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp.c
b/net/ipv4/tcp.c
index 6c8a77eb6e574af43404ad24f5c74cc57d9a6379..0d01284271b46772cd9322829aa88a08b0b16e53 100644
(file)
--- 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);