|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 1eb808756e3e4cc724ba17725a8513e562551c21 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Tom Gundersen <teg@jklm.no>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Sat, 6 Sep 2014 22:16:20 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] networkd: netdev - failing to create a netdev is not fatal,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
just fail that netdev
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/network/networkd-netdev.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 1a436f75df..fd1f51ec56 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/network/networkd-netdev.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/network/networkd-netdev.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -721,7 +721,7 @@ static int netdev_load_one(Manager *manager, const char *filename) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
case NETDEV_CREATE_INDEPENDENT:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
r = netdev_create(netdev, NULL, NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- return r;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ return 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
break;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
default:
|