Skip to content

Commit

Permalink
bonding: do not cancel works in bond_uninit()
Browse files Browse the repository at this point in the history
Bonding initializes these works in bond_open() and cancels in bond_close(),
thus in bond_uninit() they are already canceled but may be unitialized yet.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Nikolay Aleksandrov <nikolay@redhat.com>
Cc: Jay Vosburgh <fubar@us.ibm.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Konstantin Khlebnikov authored and David S. Miller committed Dec 14, 2012
1 parent 493682b commit cfb6f99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4431,8 +4431,6 @@ static void bond_uninit(struct net_device *bond_dev)

list_del(&bond->bond_list);

bond_work_cancel_all(bond);

bond_debug_unregister(bond);

__hw_addr_flush(&bond->mc_list);
Expand Down

0 comments on commit cfb6f99

Please sign in to comment.