]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use unsigned ring indices in amdgpu_queue_mgr_map
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 22 Nov 2017 14:55:21 +0000 (15:55 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Nov 2017 22:44:14 +0000 (17:44 -0500)
commit740648e13cdbc35662b6e722a08b62453b5db1d5
treedb5b7742c26247e7d67aab43cca8952ec25777f3
parent728dbd8ea631de215073c23b0bddfc811d0a0704
drm/amdgpu: Use unsigned ring indices in amdgpu_queue_mgr_map

This matches the corresponding UAPI fields. Treating the ring index as
signed could result in accessing random unrelated memory if the MSB was
set.

Fixes: 788903a9d9b2 ("drm/amdgpu: untie user ring ids from kernel ring
                      ids v6")
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c