drm/amdgpu: fix NULL fence handling in amdgpu_cs_fence_to_handle_ioctl
authorChristian König <christian.koenig@amd.com>
Mon, 3 Dec 2018 13:05:34 +0000 (14:05 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Dec 2018 20:54:11 +0000 (15:54 -0500)
commit4e9177134e7dd992dd96875143413dbc303f355e
tree3abf58f8e234912f445218c5f81f71b7fc87a4d2
parente27a73d1305f22cc093b16ea9f2a81cfa9e5193c
drm/amdgpu: fix NULL fence handling in amdgpu_cs_fence_to_handle_ioctl

When the fence is already signaled it is perfectly normal to get a NULL
fence here. But since we can't export that we need to use a stub fence.

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