Commit 719c7d5 1 parent e633508 commit 719c7d5 Copy full SHA for 719c7d5
File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2312,7 +2312,6 @@ static void __net_exit __ip_vs_cleanup(struct net *net)
2312
2312
{
2313
2313
struct netns_ipvs * ipvs = net_ipvs (net );
2314
2314
2315
- nf_unregister_net_hooks (net , ip_vs_ops , ARRAY_SIZE (ip_vs_ops ));
2316
2315
ip_vs_service_net_cleanup (ipvs ); /* ip_vs_flush() with locks */
2317
2316
ip_vs_conn_net_cleanup (ipvs );
2318
2317
ip_vs_app_net_cleanup (ipvs );
@@ -2327,6 +2326,7 @@ static void __net_exit __ip_vs_dev_cleanup(struct net *net)
2327
2326
{
2328
2327
struct netns_ipvs * ipvs = net_ipvs (net );
2329
2328
EnterFunction (2 );
2329
+ nf_unregister_net_hooks (net , ip_vs_ops , ARRAY_SIZE (ip_vs_ops ));
2330
2330
ipvs -> enable = 0 ; /* Disable packet reception */
2331
2331
smp_wmb ();
2332
2332
ip_vs_sync_net_cleanup (ipvs );
You can’t perform that action at this time.
0 commit comments