diff options
-rw-r--r-- | drivers/net/bonding/bond_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 5509732d3f9d..e41b3e57260c 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -4992,9 +4992,10 @@ err: | |||
4992 | destroy_workqueue(bond->wq); | 4992 | destroy_workqueue(bond->wq); |
4993 | } | 4993 | } |
4994 | 4994 | ||
4995 | bond_destroy_sysfs(); | ||
4996 | |||
4995 | rtnl_lock(); | 4997 | rtnl_lock(); |
4996 | bond_free_all(); | 4998 | bond_free_all(); |
4997 | bond_destroy_sysfs(); | ||
4998 | rtnl_unlock(); | 4999 | rtnl_unlock(); |
4999 | out: | 5000 | out: |
5000 | return res; | 5001 | return res; |
@@ -5006,9 +5007,10 @@ static void __exit bonding_exit(void) | |||
5006 | unregister_netdevice_notifier(&bond_netdev_notifier); | 5007 | unregister_netdevice_notifier(&bond_netdev_notifier); |
5007 | unregister_inetaddr_notifier(&bond_inetaddr_notifier); | 5008 | unregister_inetaddr_notifier(&bond_inetaddr_notifier); |
5008 | 5009 | ||
5010 | bond_destroy_sysfs(); | ||
5011 | |||
5009 | rtnl_lock(); | 5012 | rtnl_lock(); |
5010 | bond_free_all(); | 5013 | bond_free_all(); |
5011 | bond_destroy_sysfs(); | ||
5012 | rtnl_unlock(); | 5014 | rtnl_unlock(); |
5013 | } | 5015 | } |
5014 | 5016 | ||