Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362408
b: refs/heads/master
c: 69b0216
h: refs/heads/master
v: v3
  • Loading branch information
nikolay@redhat.com authored and David S. Miller committed Apr 8, 2013
1 parent 54a42c2 commit 670779f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffcdedb667b6db8ee31c7efa76a3ec59d9c3b0fc
refs/heads/master: 69b0216ac255f523556fa3d4ff030d857eaaa37f
9 changes: 9 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4846,9 +4846,18 @@ static int __net_init bond_net_init(struct net *net)
static void __net_exit bond_net_exit(struct net *net)
{
struct bond_net *bn = net_generic(net, bond_net_id);
struct bonding *bond, *tmp_bond;
LIST_HEAD(list);

bond_destroy_sysfs(bn);
bond_destroy_proc_dir(bn);

/* Kill off any bonds created after unregistering bond rtnl ops */
rtnl_lock();
list_for_each_entry_safe(bond, tmp_bond, &bn->dev_list, bond_list)
unregister_netdevice_queue(bond->dev, &list);
unregister_netdevice_many(&list);
rtnl_unlock();
}

static struct pernet_operations bond_net_ops = {
Expand Down

0 comments on commit 670779f

Please sign in to comment.