summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/gmmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 62c84e96..22f73083 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -838,7 +838,7 @@ static int __nvgpu_locate_pte(struct gk20a *g, struct vm_gk20a *vm,
838 if (!pd_next->mem) 838 if (!pd_next->mem)
839 return -EINVAL; 839 return -EINVAL;
840 840
841 attrs->pgsz = l->get_pgsz(g, pd, pd_idx); 841 attrs->pgsz = l->get_pgsz(g, l, pd, pd_idx);
842 842
843 if (attrs->pgsz >= gmmu_nr_page_sizes) 843 if (attrs->pgsz >= gmmu_nr_page_sizes)
844 return -EINVAL; 844 return -EINVAL;