summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/route/link/sriov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link/sriov.c b/lib/route/link/sriov.c
index b4bc9a7e..5c20ecff 100644
--- a/lib/route/link/sriov.c
+++ b/lib/route/link/sriov.c
@@ -1315,7 +1315,7 @@ int rtnl_link_vf_vlan_alloc(nl_vf_vlans_t **vf_vlans, int vlan_count) {
return -NLE_INVAL;
vlans = calloc(1, sizeof(*vlans));
- if (!vf_vlans)
+ if (!vlans)
return -NLE_NOMEM;
vlan_info = calloc(vlan_count+1, sizeof(*vlan_info));