summaryrefslogtreecommitdiff
path: root/lib/librte_eal/common/eal_common_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_eal/common/eal_common_dev.c')
-rw-r--r--lib/librte_eal/common/eal_common_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/eal_common_dev.c
index 5759ec2..1fdc9ab 100644
--- a/lib/librte_eal/common/eal_common_dev.c
+++ b/lib/librte_eal/common/eal_common_dev.c
@@ -150,10 +150,11 @@ local_dev_probe(const char *devargs, struct rte_device **new_dev)
goto err_devarg;
}
- ret = rte_devargs_insert(da);
+ ret = rte_devargs_insert(&da);
if (ret)
goto err_devarg;
+ /* the rte_devargs will be referenced in the matching rte_device */
ret = da->bus->scan();
if (ret)
goto err_devarg;