mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 15:20:11 +01:00
manager: don't proceed with activation when there's no master device
Since the device-for-all merge it's a sin (trips an assert) to create an activation request with NULL device. If we get here, it's probably that the master device exists, but is not ready for activation (it's in UNMANAGED state in the process of being created).
This commit is contained in:
parent
84543df1db
commit
3f669444ce
1 changed files with 0 additions and 15 deletions
|
|
@ -2564,21 +2564,6 @@ ensure_master_active_connection (NMManager *self,
|
|||
return master_ac;
|
||||
}
|
||||
|
||||
/* Device described by master_connection may be a virtual one that's
|
||||
* not created yet.
|
||||
*/
|
||||
if (!found_device && nm_connection_is_virtual (NM_CONNECTION (master_connection))) {
|
||||
master_ac = nm_manager_activate_connection (self,
|
||||
master_connection,
|
||||
NULL,
|
||||
NULL,
|
||||
subject,
|
||||
error);
|
||||
if (!master_ac)
|
||||
g_prefix_error (error, "%s", "Master device activation failed: ");
|
||||
return master_ac;
|
||||
}
|
||||
|
||||
g_set_error (error,
|
||||
NM_MANAGER_ERROR,
|
||||
NM_MANAGER_ERROR_UNKNOWN_DEVICE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue