diff options
| -rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_process.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 84d1ffd1eef9..035bbc98a63d 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c | |||
| @@ -318,12 +318,13 @@ static struct kfd_process *create_process(const struct task_struct *thread) | |||
| 318 | 318 | ||
| 319 | /* init process apertures*/ | 319 | /* init process apertures*/ |
| 320 | process->is_32bit_user_mode = in_compat_syscall(); | 320 | process->is_32bit_user_mode = in_compat_syscall(); |
| 321 | if (kfd_init_apertures(process) != 0) | 321 | err = kfd_init_apertures(process); |
| 322 | goto err_init_apretures; | 322 | if (err != 0) |
| 323 | goto err_init_apertures; | ||
| 323 | 324 | ||
| 324 | return process; | 325 | return process; |
| 325 | 326 | ||
| 326 | err_init_apretures: | 327 | err_init_apertures: |
| 327 | pqm_uninit(&process->pqm); | 328 | pqm_uninit(&process->pqm); |
| 328 | err_process_pqm_init: | 329 | err_process_pqm_init: |
| 329 | hash_del_rcu(&process->kfd_processes); | 330 | hash_del_rcu(&process->kfd_processes); |
