mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 10:46:59 +00:00
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.
This commit is contained in:
parent
88f3aba9bf
commit
2e22880894
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue