drm: radeon: fix overflow on 32bit systems
authorYoung Xiao <YangX92@hotmail.com>
Tue, 27 Nov 2018 11:50:17 +0000 (11:50 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 20:55:37 +0000 (15:55 -0500)
commitb3f4bdda998be6018b76f46b852313ae74db5606
tree16caed96b72ab97dcc4ad8d097a7b0a26e02ab50
parentce99814973ac8bd94e371a65c023efc4703af6f6
drm: radeon: fix overflow on 32bit systems

the type mem->start is unsigned long, so this can overflow on
32bit system, since the type addr is uint64_t.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Young Xiao <YangX92@hotmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_vm.c