drm/amdkfd: destroy mutex if process creation fails

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
Oded Gabbay 2016-06-23 17:54:29 +03:00
parent fd320bf692
commit 7fd5e03ca6
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ static struct kfd_process *create_process(const struct task_struct *thread)
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);