Skip to content
Commit 5afe93a1 authored by Michal Suchanek's avatar Michal Suchanek Committed by Simon Glass
Browse files

dm: pci: Fix device PCI iteration



When there is no PCI bus uclass_first_device will return no bus and no
error which will result in pci_find_first_device calling
skip_to_next_device with no bus, and the bus is only checked at the end
of the while cycle, not the beginning.

Fixes: 76c3fbcd ("dm: pci: Add a way to iterate through all PCI devices")
Signed-off-by: default avatarMichal Suchanek <msuchanek@suse.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent c0648b7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment