tcp: Save unnecessary inet_twsk_purge() calls.
[platform/kernel/linux-rpi.git] / net / ipv4 / tcp_ipv4.c
index 9aa186a..73e6854 100644 (file)
@@ -3206,7 +3206,7 @@ static void __net_exit tcp_sk_exit_batch(struct list_head *net_exit_list)
 {
        struct net *net;
 
-       inet_twsk_purge(&tcp_hashinfo, AF_INET);
+       tcp_twsk_purge(net_exit_list, AF_INET);
 
        list_for_each_entry(net, net_exit_list, exit_list) {
                WARN_ON_ONCE(!refcount_dec_and_test(&net->ipv4.tcp_death_row.tw_refcount));