]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26034c66695b52aab74fc9839d72fff7cda49bd1
tree2d2280cddb9fbb92849a7910c64d8718afde9cc2
parent0dff95cd5b1c4a09ccbe75db81fedab0cef8c0b6
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