From abaa8528667f683eaedc7974eb834cefa174862c Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 10 Oct 2017 11:14:05 +0200 Subject: [PATCH] manager: don't assign a new link to a device of a different link type --- src/nm-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nm-manager.c b/src/nm-manager.c index 7f854c3e3..647f0ddc2 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -2341,6 +2341,9 @@ platform_link_added (NMManager *self, gboolean compatible = TRUE; gs_free_error GError *error = NULL; + if (nm_device_get_link_type (candidate) != plink->type) + continue; + if (strcmp (nm_device_get_iface (candidate), plink->name)) continue;