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

Commit 2627b7e1 authored by Julian Anastasov's avatar Julian Anastasov Committed by Simon Horman
Browse files

ipvs: avoid netns exit crash on ip_vs_conn_drop_conntrack



commit 8f4e0a18 ("IPVS netns exit causes crash in conntrack")
added second ip_vs_conn_drop_conntrack call instead of just adding
the needed check. As result, the first call still can cause
crash on netns exit. Remove it.

Signed-off-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarHans Schillstrom <hans@schillstrom.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent ce355e20
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -797,7 +797,6 @@ static void ip_vs_conn_expire(unsigned long data)
			ip_vs_control_del(cp);

		if (cp->flags & IP_VS_CONN_F_NFCT) {
			ip_vs_conn_drop_conntrack(cp);
			/* Do not access conntracks during subsys cleanup
			 * because nf_conntrack_find_get can not be used after
			 * conntrack cleanup for the net.