Skip to content

Commit

Permalink
drm/amdkfd: destroy mutex if process creation fails
Browse files Browse the repository at this point in the history
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
  • Loading branch information
Oded Gabbay committed Jul 3, 2016
1 parent fd320bf commit 7fd5e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/amdkfd/kfd_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fd5e03

Please sign in to comment.