Skip to content

Commit

Permalink
6lowpan: reassembly: fix return of init function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and David S. Miller committed Mar 7, 2014
1 parent d03e9d0 commit 3714765
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/ieee802154/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ int __init lowpan_net_frag_init(void)

ret = lowpan_frags_sysctl_register();
if (ret)
goto out;
return ret;

ret = register_pernet_subsys(&lowpan_frags_ops);
if (ret)
Expand All @@ -550,9 +550,10 @@ int __init lowpan_net_frag_init(void)
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;
}

Expand Down

0 comments on commit 3714765

Please sign in to comment.