summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index c59dc734..4c5deef5 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -3517,7 +3517,7 @@ int gk20a_get_sgtable_from_pages(struct device *d, struct sg_table **sgt,
3517 goto fail; 3517 goto fail;
3518 } 3518 }
3519 err = sg_alloc_table_from_pages(*sgt, pages, 3519 err = sg_alloc_table_from_pages(*sgt, pages,
3520 DIV_ROUND_UP(size, 4096), 0, size, GFP_KERNEL); 3520 DIV_ROUND_UP(size, PAGE_SIZE), 0, size, GFP_KERNEL);
3521 if (err) { 3521 if (err) {
3522 dev_err(d, "failed to allocate sg_table\n"); 3522 dev_err(d, "failed to allocate sg_table\n");
3523 goto fail; 3523 goto fail;