drm/amdgpu: fix amdgpu_mn_unlock() in the CS error path
Avoid unlocking a lock we never locked. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
67c6ed7cf9
commit
b463d4e53c
@ -1262,10 +1262,10 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,
|
|||||||
error_abort:
|
error_abort:
|
||||||
dma_fence_put(&job->base.s_fence->finished);
|
dma_fence_put(&job->base.s_fence->finished);
|
||||||
job->base.s_fence = NULL;
|
job->base.s_fence = NULL;
|
||||||
|
amdgpu_mn_unlock(p->mn);
|
||||||
|
|
||||||
error_unlock:
|
error_unlock:
|
||||||
amdgpu_job_free(job);
|
amdgpu_job_free(job);
|
||||||
amdgpu_mn_unlock(p->mn);
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user