Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6636568c authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: Wait for untracked references in nf_conntrack module unload



Noticed by Pablo Neira <pablo@eurodev.net>.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7957563
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1383,6 +1383,9 @@ void nf_conntrack_cleanup(void)
		schedule();
		goto i_see_dead_people;
	}
	/* wait until all references to nf_conntrack_untracked are dropped */
	while (atomic_read(&nf_conntrack_untracked.ct_general.use) > 1)
		schedule();

	for (i = 0; i < NF_CT_F_NUM; i++) {
		if (nf_ct_cache[i].use == 0)