]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/failsafe/failsafe_eal.c
net/bnxt: fail init when mbuf allocation fails
[dpdk.git] / drivers / net / failsafe / failsafe_eal.c
index b9fc508673f2b3c72c2b7eefbd1a8b51abf82c4c..cb4a2abc020a33845bf81881f1845bf7f73f5dae 100644 (file)
@@ -79,7 +79,7 @@ fs_bus_init(struct rte_eth_dev *dev)
                                        rte_eth_devices[pid].device->devargs;
 
                        /* Take control of probed device. */
                                        rte_eth_devices[pid].device->devargs;
 
                        /* Take control of probed device. */
-                       free(da->args);
+                       rte_devargs_reset(da);
                        memset(da, 0, sizeof(*da));
                        if (probed_da != NULL)
                                snprintf(devstr, sizeof(devstr), "%s,%s",
                        memset(da, 0, sizeof(*da));
                        if (probed_da != NULL)
                                snprintf(devstr, sizeof(devstr), "%s,%s",