diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 31f01528..8ed9d0aa 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2171,13 +2171,7 @@ static void gk20a_vm_remove_support_nofree(struct vm_gk20a *vm) | |||
2171 | free_gmmu_pages(vm, entry); | 2171 | free_gmmu_pages(vm, entry); |
2172 | } | 2172 | } |
2173 | 2173 | ||
2174 | unmap_gmmu_pages(&vm->pdb); | 2174 | gk20a_deinit_vm(vm); |
2175 | free_gmmu_pages(vm, &vm->pdb); | ||
2176 | |||
2177 | kfree(vm->pdb.entries); | ||
2178 | gk20a_allocator_destroy(&vm->vma[gmmu_page_size_small]); | ||
2179 | if (vm->big_pages) | ||
2180 | gk20a_allocator_destroy(&vm->vma[gmmu_page_size_big]); | ||
2181 | 2175 | ||
2182 | mutex_unlock(&vm->update_gmmu_lock); | 2176 | mutex_unlock(&vm->update_gmmu_lock); |
2183 | } | 2177 | } |