@@ -1766,7 +1766,7 @@ _transport_phy_enable(struct sas_phy *phy, int enable)
/* link reset */
if (enable)
- _transport_phy_reset(phy, 0);
+ rc = _transport_phy_reset(phy, 0);
out:
kfree(sas_iounit_pg1);
@@ -1870,7 +1870,9 @@ _transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates)
}
/* link reset */
- _transport_phy_reset(phy, 0);
+ rc = _transport_phy_reset(phy, 0);
+ if (rc)
+ goto out;
/* read phy page 0, then update the rates in the sas transport phy */
if (!mpt3sas_config_get_phy_pg0(ioc, &mpi_reply, &phy_pg0,
This adds the missing error checks and paths for functions that call _transport_phy_reset and do not correctly check that the call to this particular function has succeeded by returning zero in the file, mpt3sas_transport.c. Signed-off-by: Nicholas Krause <xerofoify@gmail.com> --- drivers/scsi/mpt3sas/mpt3sas_transport.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)