From: Wang Chen <wangchen@cn.fujitsu.com>
To: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH] ipv6: Do cleanup for ip_mr_init
Date: Wed, 02 Jul 2008 17:38:16 +0800 [thread overview]
Message-ID: <486B4C88.9030000@cn.fujitsu.com> (raw)
In-Reply-To: <20080702.181831.32808810.yoshfuji@linux-ipv6.org>
YOSHIFUJI Hideaki / 吉藤英明 said the following on 2008-7-2 17:18:
> In article <48606D1B.3040507@cn.fujitsu.com> (at Tue, 24 Jun 2008 11:42:19 +0800), Wang Chen <wangchen@cn.fujitsu.com> says:
>
>> If do not do it, we will get following issues:
>> 1. Leaving junks after inet6_init failing halfway.
>> 2. Leaving proc and notifier junks after ipv6 modules unloading.
>>
>> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
>
>> diff --git a/include/linux/mroute6.h b/include/linux/mroute6.h
>> index e798959..05ffaac 100644
>> --- a/include/linux/mroute6.h
>> +++ b/include/linux/mroute6.h
>> diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
>> index e84b3fd..15d4138 100644
>> --- a/net/ipv6/af_inet6.c
>> +++ b/net/ipv6/af_inet6.c
>> @@ -1115,7 +1118,9 @@ static void __exit inet6_exit(void)
>> ipv6_netfilter_fini();
>> igmp6_cleanup();
>> ndisc_cleanup();
>> +#ifdef CONFIG_IPV6_MROUTE
>> icmpv6_cleanup();
>> +#endif
>> rawv6_exit();
>>
>> unregister_pernet_subsys(&inet6_net_ops);
>
> Well we really need this #ifdef ... #endif?
>
My fault.
I meant:
+#ifdef CONFIG_IPV6_MROUTE
+ ip6_mr_cleanup();
+#endif
icmpv6_cleanup();
I will fix.
> And well, would you please make ip6_mr_init() return
> error and handle it correctly?
>
Sure, I will do it.
> We need to fix ipv4-side as well.
>
Of course, it can be done by me.
Thank you for the comments.
next prev parent reply other threads:[~2008-07-02 9:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 3:42 [PATCH] ipv6: Do cleanup for ip_mr_init Wang Chen
2008-07-02 8:49 ` Wang Chen
2008-07-02 9:18 ` YOSHIFUJI Hideaki / 吉藤英明
2008-07-02 9:38 ` Wang Chen [this message]
2008-07-03 4:13 ` v2 [PATCH 1/2] ipv6: Do cleanup for ip6_mr_init Wang Chen
2008-07-03 7:09 ` YOSHIFUJI Hideaki / 吉藤英明
[not found] ` <486C50AE.7000207@cn.fujitsu.com>
2008-07-03 4:13 ` v2 [PATCH 2/2] ipv4: Do cleanup for ip_mr_init Wang Chen
2008-07-03 7:10 ` YOSHIFUJI Hideaki / 吉藤英明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=486B4C88.9030000@cn.fujitsu.com \
--to=wangchen@cn.fujitsu.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).