mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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>
This commit is contained in:
parent
962d359c4d
commit
055f15ab2c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user