提交 7fd5e03c 编写于 作者: O Oded Gabbay

drm/amdkfd: destroy mutex if process creation fails

Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
上级 fd320bf6
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册