diff options
author | Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> | 2015-10-29 15:15:44 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2015-10-29 16:39:32 +0100 |
commit | b9c84956f9fc7ca352751fa9cc7f5cb3c822732d (patch) | |
tree | 117cd7537581c905e7c3fa758b6250da4cf8dfcf | |
parent | f43ce9e2948bc9b88acc73f40fe64628e8df1e4b (diff) | |
download | NetworkManager-lr/ubuntu.tar.gz |
Don't crash when a device can't be created; just warn.lr/ubuntu
This was apparently how things were handled in 0.9.10; but changed in 1.0.4.
Still, on some devices (phones!) a failure to have the NMDeviceFactory create
the device can happen even if the device technically has a type, and in that
case it seems that the error message does not get set.
The issue we've seen seemed to be with ccmni0 being detected as a wifi device,
but bad kernel drivers with an incomplete WEXT extension set would report
a WEXT version of 0 and thus fail its activation.
This won't fix those devices, but the message will show up in logs, along
with the interface name so we can then fix that interface properly.
-rw-r--r-- | src/nm-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index 929d468b31..35b5320642 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -1954,7 +1954,7 @@ platform_link_added (NMManager *self, if (!device) { if (!ignore) { nm_log_warn (LOGD_HW, "%s: factory failed to create device: %s", - plink->name, error->message); + plink->name, error ? error->message : "(unknown)"); g_clear_error (&error); } return; |