diff options
author | Thomas Haller <thaller@redhat.com> | 2018-07-11 13:25:40 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-07-11 15:39:41 +0200 |
commit | 752042d50699ae84157c2066a549426a336eb1df (patch) | |
tree | 3c800cde3722390f10c3fbf140ed36b9fdd51da9 | |
parent | c2558f3ea0bbd2779975017c7687ce39e55576cf (diff) | |
download | NetworkManager-752042d50699ae84157c2066a549426a336eb1df.tar.gz |
fixup! platform: allow setting drivers-autoprobe on SR-IOV PFs
Seems some error checking was desired...
Regadless of that, do we really want to just silently "return FALSE"?
Fine with me.
-rw-r--r-- | src/platform/nm-linux-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index e0972b9b7e..c737cc42c8 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -5592,7 +5592,7 @@ link_set_sriov_params (NMPlatform *platform, ifname, "device/sriov_totalvfs"), 10, 0, G_MAXUINT, 0); - if (total < 1) + if (errno) return FALSE; if (num_vfs > total) { _LOGW ("link: %d only supports %u VFs (requested %u)", ifindex, total, num_vfs); |