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.

scsi: pm80xx: Fix error return code in pm8001_pci_probe()

If pm8001_init_sas_add() fails, return error code in pm8001_pci_probe().

Fixes: 14a8f116cdc0 ("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>

authored by

Yang Yingliang and committed by
Martin K. Petersen
d4e02653 e6585198

+2 -1
+2 -1
drivers/scsi/pm8001/pm8001_init.c
··· 1181 1181 pm80xx_set_thermal_config(pm8001_ha); 1182 1182 } 1183 1183 1184 - if (pm8001_init_sas_add(pm8001_ha)) 1184 + rc = pm8001_init_sas_add(pm8001_ha); 1185 + if (rc) 1185 1186 goto err_out_shost; 1186 1187 /* phy setting support for motherboard controller */ 1187 1188 rc = pm8001_configure_phy_settings(pm8001_ha);