Commit a2138eaf authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu: fix wait_any_fence

first is incorrect if hit NULL/signaled fence
Signed-off-by: default avatarMonk Liu <monk.liu@amd.com>
Reviewed-by: default avatarChunming Zhou <David1.Zhou@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 238e793f
......@@ -1384,6 +1384,7 @@ static int amdgpu_cs_wait_any_fence(struct amdgpu_device *adev,
array[i] = fence;
} else { /* NULL, the fence has been already signaled */
r = 1;
first = i;
goto out;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment