scsi: pm80xx: Fix error return code in pm8001_pci_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 25 Jul 2023 12:57:06 +0000 (20:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 26 Jul 2023 01:54:37 +0000 (21:54 -0400)
commitd4e0265345778c623d1fe619075b677731847c34
tree00aec2adacb1d5e9f09f3429e54cbfafdc4e5797
parente65851989001c0c9ba9177564b13b38201c0854c
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>
drivers/scsi/pm8001/pm8001_init.c