diff options
author | Thomas Haller <thaller@redhat.com> | 2019-02-10 13:46:52 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-13 16:03:23 +0100 |
commit | 385e29d9ea00cef64380e119825d2e7abe3f46aa (patch) | |
tree | 38991971db67b30688d89a0d9b877aa1eda28715 | |
parent | ebe7f4e4949357307114f1324d34919d1a2d7f69 (diff) | |
download | NetworkManager-385e29d9ea00cef64380e119825d2e7abe3f46aa.tar.gz |
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: e4bdb219091004f751706aadc39e4fed21e86368
-rw-r--r-- | src/devices/nm-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index bcb56baeea..2d7efb1aee 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -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)) { |