drm/amdgpu: fix wait_any_fence
authorMonk Liu <monk.liu@amd.com>
Fri, 11 Aug 2017 09:49:48 +0000 (17:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:22:43 +0000 (14:22 -0400)
commita2138eaf97b4e053b229fe07e1bb4ecbe07e6769
tree88ae958ccc594267367b47a3bfb4a6fc2ca7395c
parent238e793f4704e794bd3bc04b0e8fadcf0334b495
drm/amdgpu: fix wait_any_fence

first is incorrect if hit NULL/signaled fence

Signed-off-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c