drm/amdgpu: fix dma_fence_wait without reference
authorChristian König <christian.koenig@amd.com>
Fri, 16 Aug 2019 12:56:35 +0000 (14:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Aug 2019 20:33:36 +0000 (15:33 -0500)
commit42068e1ef961c719f967dbbb4ddcb394a0ba7917
treeb4f5a17c99771d8a3ad5c0e6d01f5cd21311603e
parent7837951a12fdaf88d2c51ff0757980c00072790c
drm/amdgpu: fix dma_fence_wait without reference

We need to grab a reference to the fence we wait for.

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_ctx.c