summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-08 21:08:12 +0200
committerTom Gundersen <teg@jklm.no>2014-05-09 14:41:27 +0200
commit37ebeb77cf94ef0222cbe3b19eaad8a0a53702f1 (patch)
tree8068efd40d98ff1b5be500810ec79e7019e124b7 /src
parent370e9930c3260cc58984ec70e44b1e2ab7676496 (diff)
networkd: netdev - drop if creation fails
This ensures that all links waiting to be enslaved are notified that the netdev does not exist.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-netdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index 36decf459a..7962cc6c6a 100644
--- a/src/network/networkd-netdev.c
+++ b/src/network/networkd-netdev.c
@@ -219,8 +219,8 @@ static int netdev_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda
if (r == -EEXIST)
log_debug_netdev(netdev, "netdev exists, using existing");
else if (r < 0) {
- log_warning_netdev(netdev, "netdev failed: %s", strerror(-r));
- netdev_enter_failed(netdev);
+ log_warning_netdev(netdev, "netdev could not be greated: %s", strerror(-r));
+ netdev_drop(netdev);
return 1;
}