]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: fix type mismatch error
authormonk.liu <monk.liu@amd.com>
Wed, 12 Aug 2015 09:56:52 +0000 (17:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:51:18 +0000 (16:51 -0400)
commita8f5bf0b220c28b1b600a5ff3cae0b53c5c2079b
tree3c28ba201e8292a315029ed229128679d2da5825
parent281b42230175608dec0cd8dab9908250e7aa36a9
drm/amdgpu: fix type mismatch error

remaining timeout returned by amdgpu_fence_wait_any can be larger than
max int value, thus the truncated 32 bit value in r ends up being
negative while its original long value is positive.

Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c