mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
mlxsw: pci: Fix missing error checking
I accidentally removed the error checking after issuing the reset.
Restore it.
Fixes: f257c73e53 ("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>
This commit is contained in:
parent
2f3ce7a56c
commit
9f1f6111fd
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user