]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pci] Ignore invalid subordinate bus numbers 1619/head
authorMichael Brown <mcb30@ipxe.org>
Thu, 5 Feb 2026 11:58:01 +0000 (11:58 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 5 Feb 2026 12:09:59 +0000 (12:09 +0000)
commit95e756569ad3fe919dafb9b0d24b826ec3d74403
treee7347e9ae2cde2e350565ce4e01a3ea27a4399eb
parentaa06a76eb854c092dd35a53a161b0bf3c179bb07
[pci] Ignore invalid subordinate bus numbers

Some systems (observed on a Dell C6615) fail to correctly populate the
subordinate PCI bus number on some PCI bridges.  We do not currently
guard against this behaviour, causing us to subsequently scan through
a huge expanse of the PCI bus:dev.fn address range.

Fix by ignoring the subordinate bus number if it is lower than the
bridge's own bus number.

Reported-by: Anisse Astier <an.astier@criteo.com>
Reported-by: Ahmad Mahagna <ahmhad@nvidia.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/pci.c