diff options
author | Ido Schimmel <idosch@nvidia.com> | 2023-11-23 13:01:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-11-25 19:21:15 +0000 |
commit | 9f1f6111fd5d553ec175c4e81d7ebf6932aaeca0 (patch) | |
tree | 01584ed423d600533d74eb52c4f279ad645cd3af /drivers | |
parent | 2f3ce7a56c6e02bc0b258507f3a82b7511f62f9e (diff) | |
download | linux-9f1f6111fd5d553ec175c4e81d7ebf6932aaeca0.tar.gz linux-9f1f6111fd5d553ec175c4e81d7ebf6932aaeca0.tar.bz2 linux-9f1f6111fd5d553ec175c4e81d7ebf6932aaeca0.zip |
mlxsw: pci: Fix missing error checking
I accidentally removed the error checking after issuing the reset.
Restore it.
Fixes: f257c73e5356 ("mlxsw: pci: Add support for new reset flow")
Reported-by: Coverity Scan <scan-admin@coverity.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci.c b/drivers/net/ethernet/mellanox/mlxsw/pci.c index 0d58f13a7c7d..af99bf17eb36 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/pci.c +++ b/drivers/net/ethernet/mellanox/mlxsw/pci.c @@ -1561,6 +1561,8 @@ mlxsw_pci_reset(struct mlxsw_pci *mlxsw_pci, const struct pci_device_id *id) pci_dbg(pdev, "Starting software reset flow\n"); err = mlxsw_pci_reset_sw(mlxsw_pci); } + if (err) + return err; err = mlxsw_pci_sys_ready_wait(mlxsw_pci, id, &sys_status); if (err) { |