mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 15:08:05 +02:00
amdgpu: add missing mutex lock/unlock pair
Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1fcd08bc9c
commit
65d820e921
1 changed files with 2 additions and 0 deletions
|
|
@ -626,8 +626,10 @@ int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,
|
|||
amdgpu_bo_free_internal(bo);
|
||||
return r;
|
||||
}
|
||||
pthread_mutex_lock(&dev->bo_table_mutex);
|
||||
util_hash_table_set(dev->bo_vas,
|
||||
(void*)(uintptr_t)bo->virtual_mc_base_address, bo);
|
||||
pthread_mutex_unlock(&dev->bo_table_mutex);
|
||||
info->buf_handle = bo;
|
||||
info->virtual_mc_base_address = bo->virtual_mc_base_address;
|
||||
info->virtual_mc_base_address += off;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue