mirror of https://gitee.com/openkylin/linux.git
drm/amdkfd: destroy mutex if process creation fails
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
fd320bf692
commit
7fd5e03ca6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue