From 2e22880894cf3b15da5512bfd00803b82e9274d1 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 16 Dec 2015 18:51:58 +0100 Subject: device: don't remove the device from master if its link has no master We only need to do that when we're replacing the master with a different one. Just after the link creation is has no master and we'd remove it from the master device here. --- src/devices/nm-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 9fb944c25d..c6745b9503 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -1406,6 +1406,9 @@ device_recheck_slave_status (NMDevice *self, const NMPlatformLink *plink) g_return_if_fail (plink); + if (plink->master <= 0) + return; + if (priv->master) { if ( plink->master > 0 && plink->master == nm_device_get_ifindex (priv->master)) { -- cgit v1.2.1