mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 17:30:09 +01:00
device: abort device activation if tc_commit() fails in stage2
After we change the device's state to NM_DEVICE_STATE_FAILED,
we must abort processing the current stage.
Fixes: e4bdb21909
This commit is contained in:
parent
6f35efe6fe
commit
afdf2a21df
1 changed files with 1 additions and 0 deletions
|
|
@ -6501,6 +6501,7 @@ activate_stage2_device_config (NMDevice *self)
|
|||
if (!tc_commit (self)) {
|
||||
_LOGW (LOGD_IP6, "failed applying traffic control rules");
|
||||
nm_device_state_changed (self, NM_DEVICE_STATE_FAILED, NM_DEVICE_STATE_REASON_CONFIG_FAILED);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!nm_device_bring_up (self, FALSE, &no_firmware)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue