This patch adds a missing return after fragmentation init. Otherwise we
register a sysctl interface and deregister it afterwards which makes no
sense.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
ret = lowpan_frags_sysctl_register();
if (ret)
- goto out;
+ return ret;
ret = register_pernet_subsys(&lowpan_frags_ops);
if (ret)
lowpan_frags.frag_expire = lowpan_frag_expire;
lowpan_frags.secret_interval = 10 * 60 * HZ;
inet_frags_init(&lowpan_frags);
+
+ return ret;
err_pernet:
lowpan_frags_sysctl_unregister();
-out:
return ret;
}