Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102597
b: refs/heads/master
c: 0002c63
h: refs/heads/master
i:
  102595: a548a00
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed May 19, 2008
1 parent 6a11109 commit fdc13d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a64b4b811025ce0386ad84d81504e4ff7985856
refs/heads/master: 0002c630c4ee7a3c6b1d87e34bfd6ce9694b49be
8 changes: 7 additions & 1 deletion trunk/net/ipv6/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ int __init ipv6_frag_init(void)
if (ret)
goto out;

register_pernet_subsys(&ip6_frags_ops);
ret = register_pernet_subsys(&ip6_frags_ops);
if (ret)
goto err_pernet;

ip6_frags.hashfn = ip6_hashfn;
ip6_frags.constructor = ip6_frag_init;
Expand All @@ -763,6 +765,10 @@ int __init ipv6_frag_init(void)
inet_frags_init(&ip6_frags);
out:
return ret;

err_pernet:
inet6_del_protocol(&frag_protocol, IPPROTO_FRAGMENT);
goto out;
}

void ipv6_frag_exit(void)
Expand Down

0 comments on commit fdc13d0

Please sign in to comment.