diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/pramin.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pramin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/pramin.c b/drivers/gpu/nvgpu/common/pramin.c index 9d59f61d..4f7d6248 100644 --- a/drivers/gpu/nvgpu/common/pramin.c +++ b/drivers/gpu/nvgpu/common/pramin.c | |||
@@ -105,7 +105,8 @@ void nvgpu_pramin_access_batched(struct gk20a *g, struct nvgpu_mem *mem, | |||
105 | 105 | ||
106 | alloc = get_vidmem_page_alloc(mem->priv.sgt->sgl); | 106 | alloc = get_vidmem_page_alloc(mem->priv.sgt->sgl); |
107 | sgt = &alloc->sgt; | 107 | sgt = &alloc->sgt; |
108 | for (sgl = sgt->sgl; sgl; sgl = nvgpu_sgt_get_next(sgt, sgl)) { | 108 | |
109 | nvgpu_sgt_for_each_sgl(sgl, sgt) { | ||
109 | if (offset >= nvgpu_sgt_get_length(sgt, sgl)) | 110 | if (offset >= nvgpu_sgt_get_length(sgt, sgl)) |
110 | offset -= nvgpu_sgt_get_length(sgt, sgl); | 111 | offset -= nvgpu_sgt_get_length(sgt, sgl); |
111 | else | 112 | else |