Skip to content

Commit d4e0265

Browse files
Yang Yingliangmartinkpetersen
authored andcommitted
scsi: pm80xx: Fix error return code in pm8001_pci_probe()
If pm8001_init_sas_add() fails, return error code in pm8001_pci_probe(). Fixes: 14a8f11 ("scsi: pm80xx: Add GET_NVMD timeout during probe") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20230725125706.566990-1-yangyingliang@huawei.com Reviewed-by: Igor Pylypiv <ipylypiv@google.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent e658519 commit d4e0265

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/pm8001/pm8001_init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,8 @@ static int pm8001_pci_probe(struct pci_dev *pdev,
11811181
pm80xx_set_thermal_config(pm8001_ha);
11821182
}
11831183

1184-
if (pm8001_init_sas_add(pm8001_ha))
1184+
rc = pm8001_init_sas_add(pm8001_ha);
1185+
if (rc)
11851186
goto err_out_shost;
11861187
/* phy setting support for motherboard controller */
11871188
rc = pm8001_configure_phy_settings(pm8001_ha);

0 commit comments

Comments
 (0)