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
pull/1/head
Oliver Smith 4 months ago
parent 189a39639d
commit 1bf48da7a8
  1. 1
      rtl8168-eeprom.c

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

Loading…
Cancel
Save