diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vidmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/vidmem.c b/drivers/gpu/nvgpu/common/mm/vidmem.c index 18f46c03..d1c5a2e8 100644 --- a/drivers/gpu/nvgpu/common/mm/vidmem.c +++ b/drivers/gpu/nvgpu/common/mm/vidmem.c | |||
@@ -195,7 +195,7 @@ int nvgpu_vidmem_clear(struct gk20a *g, struct nvgpu_mem *mem) | |||
195 | if (g->mm.vidmem.ce_ctx_id == (u32)~0) | 195 | if (g->mm.vidmem.ce_ctx_id == (u32)~0) |
196 | return -EINVAL; | 196 | return -EINVAL; |
197 | 197 | ||
198 | alloc = nvgpu_vidmem_get_page_alloc(mem->priv.sgt->sgl); | 198 | alloc = mem->vidmem_alloc; |
199 | 199 | ||
200 | nvgpu_sgt_for_each_sgl(sgl, &alloc->sgt) { | 200 | nvgpu_sgt_for_each_sgl(sgl, &alloc->sgt) { |
201 | if (gk20a_last_fence) | 201 | if (gk20a_last_fence) |