summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2016-06-23 17:54:29 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2016-07-03 08:05:45 +0300
commit7fd5e03ca6b41a591bd9fda083362b8a07cfb5f7 (patch)
treeae43cf2897dd8d01ca2e18f4ccf75c830de7196b /drivers/gpu/drm/amd/amdkfd
parentfd320bf69297c3e4dbbb03193ec0b9cb68f3488a (diff)
downloadlinux-7fd5e03ca6b41a591bd9fda083362b8a07cfb5f7.tar.xz
drm/amdkfd: destroy mutex if process creation fails
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index 2485f31d37db..4f3849ac8c07 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
@@ -329,6 +329,7 @@ err_process_pqm_init:
synchronize_rcu();
mmu_notifier_unregister_no_release(&process->mmu_notifier, process->mm);
err_mmu_notifier:
+ mutex_destroy(&process->mutex);
kfd_pasid_free(process->pasid);
err_alloc_pasid:
kfree(process->queues);