Fix missing pci_fill_info()

Before reading vendor_id or device_id from struct pci_dev, one must call
pci_fill_info() first. It looks like this had worked with previous
libpci versions, but with libpci 3.7.0 on debian 11 this patch is needed
or else the tool stops at 'starting bus iteration' without finding the

Fixes: SYS#5956
This commit is contained in:
Oliver Smith 2022-05-16 10:36:50 +02:00
parent 189a39639d
commit 1bf48da7a8
1 changed files with 1 additions and 0 deletions

View File

@ -466,6 +466,7 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
/* our own clumsy implementation of filtering */
pci_fill_info(p, PCI_FILL_IDENT);
if (p->vendor_id != 0x10ec || p->device_id != 0x8168)