drm/amdgpu: Cast to uint64_t before left shift
authorFelix Kuehling <Felix.Kuehling@amd.com>
Sun, 25 Nov 2018 03:46:23 +0000 (22:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 19:38:33 +0000 (14:38 -0500)
commit9ce2b991f7ea45b913c3c391bb652dd95dd78876
tree2d2280cddb9fbb92849a7910c64d8718afde9cc2
parent04ac4b0ed412f65230b456fcd9aa07e13befff89
drm/amdgpu: Cast to uint64_t before left shift

Avoid potential integer overflows with left shift in huge-page mapping
code by casting the operand to uin64_t first.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c