From 4efcedfeca53f4dded24a9f43f20898eb00f53aa Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 16 May 2022 14:03:10 +0200 Subject: [PATCH] Query PCI_FILL_{BASES,SIZES} in pci_fill_info too The previous fix for missing pci_fill_info() was incomplete, it caused the device to be found but changing the mac did not succeed. Fix it up as separate commit, as the other commit is already packaged. --- rtl8168-eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl8168-eeprom.c b/rtl8168-eeprom.c index 771350f..6c85fbb 100644 --- a/rtl8168-eeprom.c +++ b/rtl8168-eeprom.c @@ -466,7 +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); + pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_SIZES); if (p->vendor_id != 0x10ec || p->device_id != 0x8168) continue;