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 device. Fixes: SYS#5956
This commit is contained in:
parent
189a39639d
commit
1bf48da7a8
|
@ -466,6 +466,7 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* our own clumsy implementation of filtering */
|
/* our own clumsy implementation of filtering */
|
||||||
|
pci_fill_info(p, PCI_FILL_IDENT);
|
||||||
if (p->vendor_id != 0x10ec || p->device_id != 0x8168)
|
if (p->vendor_id != 0x10ec || p->device_id != 0x8168)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue