]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/null/rte_eth_null.c
drivers/net: fix crash in secondary process
[dpdk.git] / drivers / net / null / rte_eth_null.c
index d85d25f7e13262259837bdedcaf9f1dfbc908a4d..244f8654546927cc5a63e502b2161d37fb7e82d9 100644 (file)
@@ -624,6 +624,7 @@ rte_pmd_null_probe(struct rte_vdev_device *dev)
                }
                /* TODO: request info from primary to set up Rx and Tx */
                eth_dev->dev_ops = &ops;
+               eth_dev->device = &dev->device;
                rte_eth_dev_probing_finish(eth_dev);
                return 0;
        }