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:
Thomas Haller 2019-02-10 13:46:52 +01:00
parent 6f35efe6fe
commit afdf2a21df

View file

@ -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)) {