summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-02-17 14:06:53 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-02-18 16:26:52 +0000
commit3a5938223395bb6dc74769d109471f4210217b43 (patch)
treee37985acfb8ac853c63e23aa01a402d11ccad666
parent1e33663e25a03cc92458eae55a6e82940916153b (diff)
vlib: fix pci init
Change-Id: I2b8c1ad5c594aeca5dc44647ab8f8061362c9284 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vlib/linux/pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vlib/linux/pci.c b/src/vlib/linux/pci.c
index 62edcf4f8b6..19be9ff8d18 100644
--- a/src/vlib/linux/pci.c
+++ b/src/vlib/linux/pci.c
@@ -954,8 +954,7 @@ init_device_from_registered (vlib_main_t * vm, vlib_pci_device_info_t * di)
while (r)
{
for (i = r->supported_devices; i->vendor_id != 0; i++)
- if (i->vendor_id == di->config0.header.vendor_id &&
- i->device_id == di->config0.header.device_id)
+ if (i->vendor_id == di->vendor_id && i->device_id == di->device_id)
{
if (di->iommu_group != -1)
err = add_device_vfio (vm, p, di, r);