diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2017-10-11 20:14:51 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2017-10-30 17:40:08 +0100 |
commit | 6ac826350cfd95e3307ac2e4666b618d7331e8ba (patch) | |
tree | 9f4939663ae5441ed39b136b77b900d8bc689f96 /src | |
parent | c843fe478337a857b44647ba63df2518cfab109d (diff) | |
download | NetworkManager-6ac826350cfd95e3307ac2e4666b618d7331e8ba.tar.gz |
device: do not limit unrealizement to devices with platform links
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/nm-device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index bac1577654..8e50eaaed8 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -8907,7 +8907,7 @@ delete_on_deactivate_link_delete (gpointer user_data) if (!nm_device_unrealize (data->device, TRUE, &error)) _LOGD (LOGD_DEVICE, "delete_on_deactivate: unrealizing %d failed (%s)", data->ifindex, error->message); - } else + } else if (data->ifindex > 0) nm_platform_link_delete (nm_device_get_platform (self), data->ifindex); g_free (data); @@ -8938,8 +8938,6 @@ delete_on_deactivate_check_and_schedule (NMDevice *self, int ifindex) NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); DeleteOnDeactivateData *data; - if (ifindex <= 0) - return; if (!priv->nm_owned) return; if (priv->queued_act_request) |