drm/amdgpu: fix overflow on 32bit systems
authorChristian König <christian.koenig@amd.com>
Mon, 7 Sep 2015 10:32:09 +0000 (12:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 21:23:33 +0000 (17:23 -0400)
commitb7d698d7fd7d132c6ebe56d230584f2cae6c94ee
tree3c227faefa5d3435e6820ef7340a51bbc20d27e0
parent1886d1a9caed20f457dd69a926c7f8b54c2d5f48
drm/amdgpu: fix overflow on 32bit systems

mem->start is a long, so this can overflow on 32bit systems.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c