]> 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)
commitdff3158281bdbf129f7ba552fe723a2191447936
tree2d2280cddb9fbb92849a7910c64d8718afde9cc2
parent9310944d6160a1598d3a3c384911ea247382629c
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