mirror of https://github.com/ipxe/ipxe.git
The semantics of the bus:dev.fn parameter passed to pci_find_next() are "find the first existent PCI device at this address or higher", with the caller expected to increment the address between finding devices. This does not allow the parameter to distinguish between the two cases "start from address zero" and "wrapped after incrementing maximal possible address", which could therefore lead to an infinite loop in the degenerate case that a device with address ffff:ff:1f.7 really exists. Fix by checking for wraparound in the caller (which is already responsible for performing the increment). Signed-off-by: Michael Brown <mcb30@ipxe.org> |
||
---|---|---|
.. | ||
commands | ||
keymap | ||
mucurses | ||
tui | ||
editstring.c | ||
jumpscroll.c | ||
linux_args.c | ||
readline.c | ||
shell.c | ||
strerror.c | ||
wireless_errors.c |