Skip to content

Commit eed3b45

Browse files
hiss2018gregkh
authored andcommitted
scsi: mvumi: Fix error return in mvumi_io_attach()
[ Upstream commit 055f15a ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1f93897 commit eed3b45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/scsi/mvumi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,6 +2425,7 @@ static int mvumi_io_attach(struct mvumi_hba *mhba)
24252425
if (IS_ERR(mhba->dm_thread)) {
24262426
dev_err(&mhba->pdev->dev,
24272427
"failed to create device scan thread\n");
2428+
ret = PTR_ERR(mhba->dm_thread);
24282429
mutex_unlock(&mhba->sas_discovery_mutex);
24292430
goto fail_create_thread;
24302431
}

0 commit comments

Comments
 (0)