drivers/net: fix crash in secondary process
[dpdk.git] / drivers / net / vhost / rte_eth_vhost.c
index 47b3345..e58f322 100644 (file)
@@ -1354,6 +1354,7 @@ rte_pmd_vhost_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;
        }