drm/amdgpu: fix old fence check in amdgpu_fence_emit
authorChristian König <christian.koenig@amd.com>
Fri, 29 Mar 2019 18:30:23 +0000 (19:30 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Apr 2019 16:28:17 +0000 (11:28 -0500)
commit3d2aca8c8620346abdba96c6300d2c0b90a1d0cc
treef994e5ccf90f901233b4e9ef0752c2759ccf3fb0
parent1afeb3144344e303547a211ff29d1e18ba9a9994
drm/amdgpu: fix old fence check in amdgpu_fence_emit

We don't hold a reference to the old fence, so it can go away
any time we are waiting for it to signal.

Signed-off-by: Christian König <christian.koenig@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_fence.c