net: fix iterating over hashtable in tcp_nuke_addr()
authorDmitry Torokhov <dtor@google.com>
Fri, 10 Jul 2015 00:17:57 +0000 (17:17 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:16 +0000 (13:51 -0800)
commit4747299b2c8e8778927b3df0501023d76fe4f2d5
treea31a3b77361fc49df80aa4fcb74367727315f6dd
parent38f0ec724f5306c81130ca9343c856aa37a76d54
net: fix iterating over hashtable in tcp_nuke_addr()

The actual size of the tcp hashinfo table is tcp_hashinfo.ehash_mask + 1
so we need to adjust the loop accordingly to get the sockets hashed into
the last bucket.

Change-Id: I796b3c7b4a1a7fa35fba9e5192a4a403eb6e17de
Signed-off-by: Dmitry Torokhov <dtor@google.com>
net/ipv4/tcp.c