diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2016-06-23 17:54:29 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2016-07-03 08:05:45 +0300 |
commit | 7fd5e03ca6b41a591bd9fda083362b8a07cfb5f7 (patch) | |
tree | ae43cf2897dd8d01ca2e18f4ccf75c830de7196b /drivers/gpu/drm/amd/amdkfd | |
parent | fd320bf69297c3e4dbbb03193ec0b9cb68f3488a (diff) | |
download | linux-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.c | 1 |
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); |