aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nf_nat_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/nf_nat_sip.c b/net/ipv4/netfilter/nf_nat_sip.c
index 4429069d9b42..bcddccddf768 100644
--- a/net/ipv4/netfilter/nf_nat_sip.c
+++ b/net/ipv4/netfilter/nf_nat_sip.c
@@ -461,6 +461,7 @@ static void __exit nf_nat_sip_fini(void)
461 rcu_assign_pointer(nf_nat_sip_hook, NULL); 461 rcu_assign_pointer(nf_nat_sip_hook, NULL);
462 rcu_assign_pointer(nf_nat_sip_expect_hook, NULL); 462 rcu_assign_pointer(nf_nat_sip_expect_hook, NULL);
463 rcu_assign_pointer(nf_nat_sdp_addr_hook, NULL); 463 rcu_assign_pointer(nf_nat_sdp_addr_hook, NULL);
464 rcu_assign_pointer(nf_nat_sdp_port_hook, NULL);
464 rcu_assign_pointer(nf_nat_sdp_session_hook, NULL); 465 rcu_assign_pointer(nf_nat_sdp_session_hook, NULL);
465 rcu_assign_pointer(nf_nat_sdp_media_hook, NULL); 466 rcu_assign_pointer(nf_nat_sdp_media_hook, NULL);
466 synchronize_rcu(); 467 synchronize_rcu();
@@ -471,11 +472,13 @@ static int __init nf_nat_sip_init(void)
471 BUG_ON(nf_nat_sip_hook != NULL); 472 BUG_ON(nf_nat_sip_hook != NULL);
472 BUG_ON(nf_nat_sip_expect_hook != NULL); 473 BUG_ON(nf_nat_sip_expect_hook != NULL);
473 BUG_ON(nf_nat_sdp_addr_hook != NULL); 474 BUG_ON(nf_nat_sdp_addr_hook != NULL);
475 BUG_ON(nf_nat_sdp_port_hook != NULL);
474 BUG_ON(nf_nat_sdp_session_hook != NULL); 476 BUG_ON(nf_nat_sdp_session_hook != NULL);
475 BUG_ON(nf_nat_sdp_media_hook != NULL); 477 BUG_ON(nf_nat_sdp_media_hook != NULL);
476 rcu_assign_pointer(nf_nat_sip_hook, ip_nat_sip); 478 rcu_assign_pointer(nf_nat_sip_hook, ip_nat_sip);
477 rcu_assign_pointer(nf_nat_sip_expect_hook, ip_nat_sip_expect); 479 rcu_assign_pointer(nf_nat_sip_expect_hook, ip_nat_sip_expect);
478 rcu_assign_pointer(nf_nat_sdp_addr_hook, ip_nat_sdp_addr); 480 rcu_assign_pointer(nf_nat_sdp_addr_hook, ip_nat_sdp_addr);
481 rcu_assign_pointer(nf_nat_sdp_port_hook, ip_nat_sdp_port);
479 rcu_assign_pointer(nf_nat_sdp_session_hook, ip_nat_sdp_session); 482 rcu_assign_pointer(nf_nat_sdp_session_hook, ip_nat_sdp_session);
480 rcu_assign_pointer(nf_nat_sdp_media_hook, ip_nat_sdp_media); 483 rcu_assign_pointer(nf_nat_sdp_media_hook, ip_nat_sdp_media);
481 return 0; 484 return 0;