From: Duan Jiong <duanj.fnst@cn.fujitsu.com>
To: Cong Wang <cwang@twopensource.com>
Cc: David Miller <davem@davemloft.net>, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] ipv6: delete protocol when cleanup
Date: Wed, 19 Nov 2014 09:10:56 +0800 [thread overview]
Message-ID: <546BEE20.6060907@cn.fujitsu.com> (raw)
In-Reply-To: <CAHA+R7PNmac7KQpSK-vO9zVd3+926f6n_GpaGrbpBnSn98xiyQ@mail.gmail.com>
On 11/19/2014 02:56 AM, Cong Wang wrote:
> On Tue, Nov 18, 2014 at 2:35 AM, Duan Jiong <duanj.fnst@cn.fujitsu.com> wrote:
>>
>> pim6_protocol was added when initiation, but it not deleted.
>>
>> Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
>> ---
>> net/ipv6/ip6mr.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
>> index 0171f08..6dcdecd 100644
>> --- a/net/ipv6/ip6mr.c
>> +++ b/net/ipv6/ip6mr.c
>> @@ -1439,6 +1439,9 @@ reg_pernet_fail:
>>
>> void ip6_mr_cleanup(void)
>> {
>> +#ifdef CONFIG_IPV6_PIMSM_V2
>> + inet6_del_protocol(&pim6_protocol, IPPROTO_PIM);
>> +#endif
>> unregister_netdevice_notifier(&ip6_mr_notifier);
>> unregister_pernet_subsys(&ip6mr_net_ops);
>> kmem_cache_destroy(mrt_cachep);
>
>
> Looks like rtnl_unregister() is missing as well.
>
Thanks for pointing this, i will send v2.
Thanks,
Duan
next prev parent reply other threads:[~2014-11-19 1:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 10:35 [PATCH] ipv6: delete protocol when cleanup Duan Jiong
2014-11-18 18:56 ` Cong Wang
2014-11-18 19:14 ` Eric Dumazet
2014-11-18 19:46 ` Cong Wang
2014-11-19 1:10 ` Duan Jiong [this message]
2014-11-19 1:35 ` [PATCH v2] ipv6: delete protocol and unregister rtnetlink " Duan Jiong
2014-11-19 19:46 ` Cong Wang
2014-11-19 21:55 ` David Miller
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=546BEE20.6060907@cn.fujitsu.com \
--to=duanj.fnst@cn.fujitsu.com \
--cc=cwang@twopensource.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.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).