diff --git a/net/netfilter/nf_conntrack_proto_dccp.c b/net/netfilter/nf_conntrack_proto_dccp.c index 5292560..cd078df 100644 --- a/net/netfilter/nf_conntrack_proto_dccp.c +++ b/net/netfilter/nf_conntrack_proto_dccp.c @@ -842,8 +842,8 @@ static __net_init int dccp_net_init(struct net *net) static __net_exit void dccp_net_exit(struct net *net) { - struct dccp_net *dn = dccp_pernet(net); #ifdef CONFIG_SYSCTL + struct dccp_net *dn = dccp_pernet(net); unregister_net_sysctl_table(dn->sysctl_header); kfree(dn->sysctl_table); #endif