diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index df58feb2..944a5b13 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -4077,8 +4077,10 @@ static void gk20a_vm_remove_support_nofree(struct vm_gk20a *vm) | |||
4077 | * update_gmmu_lock. | 4077 | * update_gmmu_lock. |
4078 | */ | 4078 | */ |
4079 | if (!gk20a_platform_has_syncpoints(gk20a_from_vm(vm)->dev)) { | 4079 | if (!gk20a_platform_has_syncpoints(gk20a_from_vm(vm)->dev)) { |
4080 | gk20a_semaphore_pool_unmap(vm->sema_pool, vm); | 4080 | if (vm->sema_pool) { |
4081 | gk20a_semaphore_pool_put(vm->sema_pool); | 4081 | gk20a_semaphore_pool_unmap(vm->sema_pool, vm); |
4082 | gk20a_semaphore_pool_put(vm->sema_pool); | ||
4083 | } | ||
4082 | } | 4084 | } |
4083 | 4085 | ||
4084 | mutex_lock(&vm->update_gmmu_lock); | 4086 | mutex_lock(&vm->update_gmmu_lock); |