From 1bf48da7a8dfa32ebaf637e62db847106673df9d Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 16 May 2022 10:36:50 +0200 Subject: [PATCH] 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 --- rtl8168-eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rtl8168-eeprom.c b/rtl8168-eeprom.c index 19cae0d..ae10a0a 100644 --- a/rtl8168-eeprom.c +++ b/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;