OSDN Git Service

drm/amdgpu: Fix potential integer overflows
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 9 Jul 2019 23:31:21 +0000 (19:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Jul 2019 19:37:23 +0000 (14:37 -0500)
commit7e4dec58032deb75181ec56f31aa25184333f7d0
treed44867f765477899951decd8d787c97714b7efe3
parent32eaeae0ef193b64a67177006bdf5d9130d83fd3
drm/amdgpu: Fix potential integer overflows

With mm_nodes larger than 4GB, byte_count in amdgpu_fill_buffer would
overflow.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c