Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ido Schimmel and committed by
David S. Miller
9f1f6111 2f3ce7a5

+2
+2
drivers/net/ethernet/mellanox/mlxsw/pci.c
··· 1561 1561 pci_dbg(pdev, "Starting software reset flow\n"); 1562 1562 err = mlxsw_pci_reset_sw(mlxsw_pci); 1563 1563 } 1564 + if (err) 1565 + return err; 1564 1566 1565 1567 err = mlxsw_pci_sys_ready_wait(mlxsw_pci, id, &sys_status); 1566 1568 if (err) {