summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 7043a81d..0e005f7c 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -2131,7 +2131,8 @@ void gk20a_vm_remove_support(struct vm_gk20a *vm)
2131 kfree(vm->pdes.ptes[gmmu_page_size_small]); 2131 kfree(vm->pdes.ptes[gmmu_page_size_small]);
2132 kfree(vm->pdes.ptes[gmmu_page_size_big]); 2132 kfree(vm->pdes.ptes[gmmu_page_size_big]);
2133 gk20a_allocator_destroy(&vm->vma[gmmu_page_size_small]); 2133 gk20a_allocator_destroy(&vm->vma[gmmu_page_size_small]);
2134 gk20a_allocator_destroy(&vm->vma[gmmu_page_size_big]); 2134 if (vm->big_pages)
2135 gk20a_allocator_destroy(&vm->vma[gmmu_page_size_big]);
2135 2136
2136 mutex_unlock(&vm->update_gmmu_lock); 2137 mutex_unlock(&vm->update_gmmu_lock);
2137 2138