aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/reassembly.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
index 5cd0bc693a5f..4dfcddc871ce 100644
--- a/net/ipv6/reassembly.c
+++ b/net/ipv6/reassembly.c
@@ -627,6 +627,9 @@ static struct inet6_protocol frag_protocol =
627 627
628void ipv6_frag_sysctl_init(struct net *net) 628void ipv6_frag_sysctl_init(struct net *net)
629{ 629{
630 if (net != &init_net)
631 return;
632
630 ip6_frags.ctl = &net->ipv6.sysctl.frags; 633 ip6_frags.ctl = &net->ipv6.sysctl.frags;
631} 634}
632 635