
13 Oct
2022
13 Oct
'22
12:14 a.m.
On Wed, 12 Oct 2022 at 13:58, Michal Suchanek msuchanek@suse.de wrote:
Check the returned value from pci_get_bus. After a later patch uclass_first_device_err may return a device on error and then checking that a device is returned will not suffice.
Signed-off-by: Michal Suchanek msuchanek@suse.de
v6: - split off as separate patch
drivers/pci/pci-uclass.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org