]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Jan 2018 04:09:31 +0000 (23:09 -0500)
commit736f59b06a2621688a27d9f2e30c29a2caf67692
tree047c4687d945693ccbe4e5864c69a6e52c0851eb
parent9e9b0e1aa321ab9173f55edaa63a38f22a74116e
drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() (v2)

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: 95f7ca431862 ("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>
drivers/gpu/drm/ttm/ttm_bo_vm.c