[PATCH v6 14/20] dm: pci: Update error handling in pci_sriov_init
Simon Glass
sjg at chromium.org
Thu Oct 13 00:14:48 CEST 2022
On Wed, 12 Oct 2022 at 13:58, Michal Suchanek <msuchanek at 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 at 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 at chromium.org>
More information about the U-Boot
mailing list