diff options
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c index 14af55cad5d6..63bf88264980 100644 --- a/net/ipv4/netfilter/ip_conntrack_core.c +++ b/net/ipv4/netfilter/ip_conntrack_core.c | |||
@@ -1107,6 +1107,9 @@ void ip_conntrack_cleanup(void) | |||
1107 | schedule(); | 1107 | schedule(); |
1108 | goto i_see_dead_people; | 1108 | goto i_see_dead_people; |
1109 | } | 1109 | } |
1110 | /* wait until all references to ip_conntrack_untracked are dropped */ | ||
1111 | while (atomic_read(&ip_conntrack_untracked.ct_general.use) > 1) | ||
1112 | schedule(); | ||
1110 | 1113 | ||
1111 | kmem_cache_destroy(ip_conntrack_cachep); | 1114 | kmem_cache_destroy(ip_conntrack_cachep); |
1112 | kmem_cache_destroy(ip_conntrack_expect_cachep); | 1115 | kmem_cache_destroy(ip_conntrack_expect_cachep); |