ipvs: avoid netns exit crash on ip_vs_conn_drop_conntrack
authorJulian Anastasov <ja@ssi.bg>
Thu, 10 Jul 2014 06:24:01 +0000 (09:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:54:14 +0000 (14:54 -0700)
commita5114ef14123a6da5a62d389ed3dacbfc3a94541
tree08bca561c3df6667313d5e932e538b425092cd92
parenta8f165f517656c5c84dcb059ea2d51fa73f2571c
ipvs: avoid netns exit crash on ip_vs_conn_drop_conntrack

commit 2627b7e15c5064ddd5e578e4efd948d48d531a3f upstream.

commit 8f4e0a18682d91 ("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: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/ipvs/ip_vs_conn.c