diff options
| author | Colin Ian King <[email protected]> | 2021-04-22 12:31:58 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-23 21:16:43 +0000 |
| commit | 65f8db8150ee30623cd6b870d6f836c4339026a5 (patch) | |
| tree | 9f8928b12559937f0a6922b297ad078b54a81cf5 /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |
| parent | drm/amdkfd: set attribute access for default ranges (diff) | |
| download | kernel-65f8db8150ee30623cd6b870d6f836c4339026a5.tar.gz kernel-65f8db8150ee30623cd6b870d6f836c4339026a5.zip | |
drm/amdkfd: fix uint32 variable compared to less than zero
Currently the call to kfd_process_gpuidx_from_gpuid is returning an
int value and this is being assigned to a uint32_t variable gpuidx
and this is being checked for a negative error return which is always
going to be false. Fix this by making gpuidx an int32_t. This makes
gpuidx also type consistent with the use of gpuidx from the callers.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: cda0f85bfa5e ("drm/amdkfd: refine migration policy with xnack on")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
0 files changed, 0 insertions, 0 deletions
