diff options
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index e84b3fd17fb4..3d828bc4b1cf 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -7,8 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Adapted from linux/net/ipv4/af_inet.c | 8 | * Adapted from linux/net/ipv4/af_inet.c |
9 | * | 9 | * |
10 | * $Id: af_inet6.c,v 1.66 2002/02/01 22:01:04 davem Exp $ | ||
11 | * | ||
12 | * Fixes: | 10 | * Fixes: |
13 | * piggy, Karl Knutson : Socket protocol table | 11 | * piggy, Karl Knutson : Socket protocol table |
14 | * Hideaki YOSHIFUJI : sin6_scope_id support | 12 | * Hideaki YOSHIFUJI : sin6_scope_id support |
@@ -61,9 +59,7 @@ | |||
61 | 59 | ||
62 | #include <asm/uaccess.h> | 60 | #include <asm/uaccess.h> |
63 | #include <asm/system.h> | 61 | #include <asm/system.h> |
64 | #ifdef CONFIG_IPV6_MROUTE | ||
65 | #include <linux/mroute6.h> | 62 | #include <linux/mroute6.h> |
66 | #endif | ||
67 | 63 | ||
68 | MODULE_AUTHOR("Cast of dozens"); | 64 | MODULE_AUTHOR("Cast of dozens"); |
69 | MODULE_DESCRIPTION("IPv6 protocol stack for Linux"); | 65 | MODULE_DESCRIPTION("IPv6 protocol stack for Linux"); |
@@ -373,7 +369,7 @@ int inet6_release(struct socket *sock) | |||
373 | 369 | ||
374 | EXPORT_SYMBOL(inet6_release); | 370 | EXPORT_SYMBOL(inet6_release); |
375 | 371 | ||
376 | int inet6_destroy_sock(struct sock *sk) | 372 | void inet6_destroy_sock(struct sock *sk) |
377 | { | 373 | { |
378 | struct ipv6_pinfo *np = inet6_sk(sk); | 374 | struct ipv6_pinfo *np = inet6_sk(sk); |
379 | struct sk_buff *skb; | 375 | struct sk_buff *skb; |
@@ -391,8 +387,6 @@ int inet6_destroy_sock(struct sock *sk) | |||
391 | 387 | ||
392 | if ((opt = xchg(&np->opt, NULL)) != NULL) | 388 | if ((opt = xchg(&np->opt, NULL)) != NULL) |
393 | sock_kfree_s(sk, opt, opt->tot_len); | 389 | sock_kfree_s(sk, opt, opt->tot_len); |
394 | |||
395 | return 0; | ||
396 | } | 390 | } |
397 | 391 | ||
398 | EXPORT_SYMBOL_GPL(inet6_destroy_sock); | 392 | EXPORT_SYMBOL_GPL(inet6_destroy_sock); |
@@ -956,9 +950,9 @@ static int __init inet6_init(void) | |||
956 | err = icmpv6_init(); | 950 | err = icmpv6_init(); |
957 | if (err) | 951 | if (err) |
958 | goto icmp_fail; | 952 | goto icmp_fail; |
959 | #ifdef CONFIG_IPV6_MROUTE | 953 | err = ip6_mr_init(); |
960 | ip6_mr_init(); | 954 | if (err) |
961 | #endif | 955 | goto ipmr_fail; |
962 | err = ndisc_init(); | 956 | err = ndisc_init(); |
963 | if (err) | 957 | if (err) |
964 | goto ndisc_fail; | 958 | goto ndisc_fail; |
@@ -1061,6 +1055,8 @@ netfilter_fail: | |||
1061 | igmp_fail: | 1055 | igmp_fail: |
1062 | ndisc_cleanup(); | 1056 | ndisc_cleanup(); |
1063 | ndisc_fail: | 1057 | ndisc_fail: |
1058 | ip6_mr_cleanup(); | ||
1059 | ipmr_fail: | ||
1064 | icmpv6_cleanup(); | 1060 | icmpv6_cleanup(); |
1065 | icmp_fail: | 1061 | icmp_fail: |
1066 | unregister_pernet_subsys(&inet6_net_ops); | 1062 | unregister_pernet_subsys(&inet6_net_ops); |
@@ -1115,6 +1111,7 @@ static void __exit inet6_exit(void) | |||
1115 | ipv6_netfilter_fini(); | 1111 | ipv6_netfilter_fini(); |
1116 | igmp6_cleanup(); | 1112 | igmp6_cleanup(); |
1117 | ndisc_cleanup(); | 1113 | ndisc_cleanup(); |
1114 | ip6_mr_cleanup(); | ||
1118 | icmpv6_cleanup(); | 1115 | icmpv6_cleanup(); |
1119 | rawv6_exit(); | 1116 | rawv6_exit(); |
1120 | 1117 | ||