This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c8516184da4c83f533094671c19875f7b4b5f267 Author: dongjiuzhu1 <[email protected]> AuthorDate: Tue Nov 18 12:01:59 2025 +0800 drivers/pci: fix minor issue about mismatch member Devices are linked into bus->devices through their bus_list member, but pci_do_find_device_from_bus() walked the list with the node member, so it computed wrong device pointers. Use bus_list. Signed-off-by: dongjiuzhu1 <[email protected]> --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index e501c2df633..85098b40b99 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -158,7 +158,7 @@ pci_do_find_device_from_bus(FAR struct pci_bus_s *bus, uint8_t busno, FAR struct pci_bus_s *bus_tmp; FAR struct pci_device_s *dev; - list_for_every_entry(&bus->devices, dev, struct pci_device_s, node) + list_for_every_entry(&bus->devices, dev, struct pci_device_s, bus_list) { if (dev->bus->number == busno && devfn == dev->devfn) {
