From bc092bcf4483f99db3ed3b618210e77b9daa1e4d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 15 Oct 2013 20:09:50 +0200 Subject: [PATCH] core: announce device removal even for udev events with no ifindex property Actually, this case should no longer happen, but just to be sure: when a udev remove event without ifindex comes, get the ifindex from the cache and announce the device removal. Signed-off-by: Thomas Haller --- src/platform/nm-linux-platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 82286ec167..984e2f8155 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2534,6 +2534,7 @@ udev_device_removed (NMPlatform *platform, g_hash_table_iter_init (&iter, priv->udev_devices); while (g_hash_table_iter_next (&iter, &key, &value)) { if ((GUdevDevice *)value == udev_device) { + ifindex = GPOINTER_TO_INT (key); g_hash_table_iter_remove (&iter); break; }