[PATCH 11/12] drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap()
Tom St Denis
tom.stdenis at amd.com
Fri Jan 26 18:29:10 UTC 2018
Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
drivers/gpu/drm/ttm/ttm_bo_vm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c b/drivers/gpu/drm/ttm/ttm_bo_vm.c
index 07b22f04b969..6311f8a481ea 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_vm.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_vm.c
@@ -345,6 +345,7 @@ static int ttm_bo_vm_access_kmap(struct ttm_buffer_object *bo,
page++;
bytes_left -= bytes;
offset = 0;
+ buf += bytes;
} while (bytes_left);
return len;
--
2.14.3
More information about the amd-gfx
mailing list