scsi: mvumi: Fix error return in mvumi_io_attach()
[ Upstream commit 055f15ab2cb4a5cbc4c0a775ef3d0066e0fa9b34 ] 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>
This commit is contained in:
parent
e8db1c3496
commit
7a78bc1a4a
1 changed files with 1 additions and 0 deletions
|
@ -2439,6 +2439,7 @@ static int mvumi_io_attach(struct mvumi_hba *mhba)
|
||||||
if (IS_ERR(mhba->dm_thread)) {
|
if (IS_ERR(mhba->dm_thread)) {
|
||||||
dev_err(&mhba->pdev->dev,
|
dev_err(&mhba->pdev->dev,
|
||||||
"failed to create device scan thread\n");
|
"failed to create device scan thread\n");
|
||||||
|
ret = PTR_ERR(mhba->dm_thread);
|
||||||
mutex_unlock(&mhba->sas_discovery_mutex);
|
mutex_unlock(&mhba->sas_discovery_mutex);
|
||||||
goto fail_create_thread;
|
goto fail_create_thread;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue