summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-10 15:38:48 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-10-03 04:42:22 +0300
commit055f15ab2cb4a5cbc4c0a775ef3d0066e0fa9b34 (patch)
tree48a425a3448fdc24f9cc1b0c33e7144b88dffca8 /drivers
parent962d359c4d3bd4af0783456b360969edf7c4c745 (diff)
downloadlinux-055f15ab2cb4a5cbc4c0a775ef3d0066e0fa9b34.tar.xz
scsi: mvumi: Fix error return in mvumi_io_attach()
Return PTR_ERR() from the error handling case instead of 0. Link: https://lore.kernel.org/r/20200910123848.93649-1-jingxiangfeng@huawei.com Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/mvumi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c
index 8906aceda4c4..0354898d7cac 100644
--- a/drivers/scsi/mvumi.c
+++ b/drivers/scsi/mvumi.c
@@ -2425,6 +2425,7 @@ static int mvumi_io_attach(struct mvumi_hba *mhba)
if (IS_ERR(mhba->dm_thread)) {
dev_err(&mhba->pdev->dev,
"failed to create device scan thread\n");
+ ret = PTR_ERR(mhba->dm_thread);
mutex_unlock(&mhba->sas_discovery_mutex);
goto fail_create_thread;
}