bonding: fix detach of bonded device
authorBernard Iremonger <bernard.iremonger@intel.com>
Wed, 10 Feb 2016 10:13:44 +0000 (10:13 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:47 +0000 (19:05 +0100)
commit6e02723754fb2b341701ac438486b2dfea98b523
tree44e0270fa6b3faa1886fdbacf7530b6d2cd66152
parentc9634e44d1d38cf402bcd12295ccdab6f0dc45a8
bonding: fix detach of bonded device

Check that the bonded device has no slaves before detaching it.

Fixes: 8d30fe7fa737 ("bonding: support port hotplug")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_api.c