]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5a9fc6695e7790d4cdd81f27dcef1d413aafb49
tree3abf58f8e234912f445218c5f81f71b7fc87a4d2
parent0cf55e047933b9f0d91a647300b1d106ae3fae09
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