mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
drm/amdgpu: amdgpu_ring_set_fence_errors_and_reemit() handle NULL fence
All the guilty fence parameter to be NULL. Will be needed for future functionality. Reviewed-by: Jesse Zhang <jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
36ed61b1c0
commit
714d354479
|
|
@ -750,7 +750,8 @@ void amdgpu_ring_set_fence_errors_and_reemit(struct amdgpu_ring *ring,
|
|||
if (unprocessed && !dma_fence_is_signaled_locked(unprocessed)) {
|
||||
fence = container_of(unprocessed, struct amdgpu_fence, base);
|
||||
is_guilty_fence = fence == guilty_fence;
|
||||
is_guilty_context = fence->context == guilty_fence->context;
|
||||
is_guilty_context = guilty_fence ?
|
||||
(fence->context == guilty_fence->context) : false;
|
||||
|
||||
/* mark all fences from the guilty context with an error */
|
||||
if (is_guilty_fence)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user