提交 d8d8396a 编写于 作者: Z Zhang Qilong 提交者: Xie XiuQi

scsi: pm80xx: Fix error return in pm8001_pci_probe()

stable inclusion
from stable-5.10.4
commit f6d844be9502ae6ea90a603f349be332ef9e5841
bugzilla: 46903

--------------------------------

[ Upstream commit 97031ccf ]

The driver did not return an error in the case where
pm8001_configure_phy_settings() failed.

Use rc to store the return value of pm8001_configure_phy_settings().

Link: https://lore.kernel.org/r/20201205115551.2079471-1-zhangqilong3@huawei.com
Fixes: 27909407 ("[SCSI] pm80xx: Phy settings support for motherboard controller.")
Acked-by: NJack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: NZhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 3d6bcd4a
......@@ -1131,7 +1131,8 @@ static int pm8001_pci_probe(struct pci_dev *pdev,
pm8001_init_sas_add(pm8001_ha);
/* phy setting support for motherboard controller */
if (pm8001_configure_phy_settings(pm8001_ha))
rc = pm8001_configure_phy_settings(pm8001_ha);
if (rc)
goto err_out_shost;
pm8001_post_sas_ha_init(shost, chip);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部