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>
Showing
想要评论请 注册 或 登录