diff options
| author | Michael Biebl <biebl@debian.org> | 2019-09-06 09:26:09 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2019-09-06 09:26:09 +0200 |
| commit | 473dd863356491d7b984baef9c72e886c774a451 (patch) | |
| tree | f7863ed06a67003b8a362e1146a1dff22ea16c55 /src/devices/nm-device.c | |
| parent | df49315721969c1013256ce92c6a0f825450f814 (diff) | |
| parent | 555dfa331e295a3a687a7cc6870e1349ffed8f26 (diff) | |
Update upstream source from tag 'upstream/1.20.2'
Update to upstream version '1.20.2' with Debian dir 0356038b3aea3f0577988e0b1019b86c657592cd
Diffstat (limited to 'src/devices/nm-device.c')
| -rw-r--r-- | src/devices/nm-device.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index f07c4f09..823cf48a 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -4151,11 +4151,12 @@ nm_device_create_and_realize (NMDevice *self, nm_auto_nmpobj const NMPObject *plink_keep_alive = NULL; NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); const NMPlatformLink *plink; + gboolean nm_owned; /* Must be set before device is realized */ plink = nm_platform_link_get_by_ifname (nm_device_get_platform (self), priv->iface); - priv->nm_owned = !plink || !link_type_compatible (self, plink->type, NULL, NULL); - _LOGD (LOGD_DEVICE, "create (is %snm-owned)", priv->nm_owned ? "" : "not "); + nm_owned = !plink || !link_type_compatible (self, plink->type, NULL, NULL); + _LOGD (LOGD_DEVICE, "create (is %snm-owned)", nm_owned ? "" : "not "); plink = NULL; /* Create any resources the device needs */ @@ -4168,6 +4169,8 @@ nm_device_create_and_realize (NMDevice *self, } } + priv->nm_owned = nm_owned; + realize_start_setup (self, plink, FALSE, /* assume_state_guess_assume */ |