Re: [PATCH v6 14/20] dm: pci: Update error handling in pci_sriov_init

2022-10-12 Thread Simon Glass
On Wed, 12 Oct 2022 at 13:58, Michal Suchanek 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 > --- > v6: - split off

[PATCH v6 14/20] dm: pci: Update error handling in pci_sriov_init

2022-10-12 Thread Michal Suchanek
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 --- v6: - split off as separate patch --- drivers/pci/pci-uclass.c | 7 +++ 1 file