drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() (v2)
authorTom St Denis <tom.stdenis@amd.com>
Fri, 26 Jan 2018 14:32:29 +0000 (09:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:25 +0000 (15:42 +0100)
commit15cdc016f109e2b8b7ede8c68c413c9b97c09fa8
tree17a744a329cbb64802defa9204d3c6e11fc3793b
parentf02c3f7f6d30fb7d0f245594c7d4a033763baa67
drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() (v2)

commit 95244db2d3f743f37e69446a2807dd1a42750542 upstream.

The buf pointer was not being incremented inside the loop
meaning the same block of data would be read or written
repeatedly.
(v2) Change 'buf' pointer to uint8_t* type

Cc: stable@vger.kernel.org
Fixes: 09ac4fcb3f25 ("drm/ttm: Implement vm_operations_struct.access v2")

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo_vm.c