From: Konstantin Khlebnikov Date: Fri, 14 Dec 2012 01:02:55 +0000 (+0000) Subject: bonding: do not cancel works in bond_uninit() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfb6f99dd9629ec7759b78cff51d9bf7eedf105a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git bonding: do not cancel works in bond_uninit() 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 Cc: Nikolay Aleksandrov Cc: Jay Vosburgh Cc: Andy Gospodarek Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index ef2cb2418535..b7d45f367d4a 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -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);