netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH vxlan v2 1/8] vxlan: Fix module cleanup.
@ 2013-06-26 20:13 Pravin B Shelar
  2013-06-26 21:48 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Pravin B Shelar @ 2013-06-26 20:13 UTC (permalink / raw)
  To: netdev, dev, stephen; +Cc: Pravin B Shelar

vxlan private per net object can be accessed in device unregister.
therefore unregister pernet device at the end.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
---
 drivers/net/vxlan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 227b54a..0ba1e7e 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1916,9 +1916,9 @@ late_initcall(vxlan_init_module);
 
 static void __exit vxlan_cleanup_module(void)
 {
-	unregister_pernet_device(&vxlan_net_ops);
 	rtnl_link_unregister(&vxlan_link_ops);
 	destroy_workqueue(vxlan_wq);
+	unregister_pernet_device(&vxlan_net_ops);
 	rcu_barrier();
 }
 module_exit(vxlan_cleanup_module);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-27  5:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26 20:13 [PATCH vxlan v2 1/8] vxlan: Fix module cleanup Pravin B Shelar
2013-06-26 21:48 ` Stephen Hemminger
2013-06-27  5:15   ` Pravin Shelar

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).