aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/linux/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/linux/pci.c')
-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);