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>
main
Monk Liu 2017-08-07 22:35:11 +08:00 committed by Alex Deucher
parent ceb70a6b10
commit 4d24415594
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}