mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 18:18:27 +02:00
amdgpu: fix missing mutex unlock before return
Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Monk Liu <monk.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ceb70a6b10
commit
4d24415594
1 changed files with 1 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ int amdgpu_bo_import(amdgpu_device_handle dev,
|
|||
/* Get a KMS handle. */
|
||||
r = drmPrimeFDToHandle(dev->fd, shared_handle, &handle);
|
||||
if (r) {
|
||||
pthread_mutex_unlock(&dev->bo_table_mutex);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue